Guest Posted June 13, 2011 Report Share Posted June 13, 2011 Hi all and thanks in advance. I'm not a total nOOB but still needing direction. SETUP: Installed VSM on sub domain and all was working perfectly other than issues about PIREPs, but that's another post to come. Installed VSM on production site and all installed fine. No errors, no problems. Did the check (db/install/ect.) In this install I also created a new MySQL DB and that checked out fine. I Can logon without issue too. I can see all pages fine also. PROBLEM: When I click on the admin link it takes me to domain.com and not to www.domain.com. I've tried to hard code it and it still does the same. Any ideas? This didn't happen in the subdomain testing area either. The link shows www.domain.com but for some reason seems to be redirected to domain.com FYI. - Am am logged on as admin when I click the link - If I simply add www to the url after it has taken me to domain.com I can access admin area without having to re-logon. - When mouse is over the admin link it does show www.domain.com URL also. - I've checked local config and it has SITE_URL as "http://www.domain.com" Quote Link to comment Share on other sites More sharing options...
easyJet Virtual Posted June 13, 2011 Report Share Posted June 13, 2011 set up and A record for your domain to point to www. and that should work, sorry if i misunderstood your question Quote Link to comment Share on other sites More sharing options...
Tom Posted June 13, 2011 Report Share Posted June 13, 2011 set up and A record for your domain to point to www. and that should work, sorry if i misunderstood your question wut? You can force the w's in your urls with the following code in your .htaccess file: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] Quote Link to comment Share on other sites More sharing options...
Guest Posted June 18, 2011 Report Share Posted June 18, 2011 Thanks for the reply guys. I just had another look at it and worked it out. In the core_navigation.tpl file I added a "/" after admin echo '<li><a href="'.fileurl('/admin/').'">Admin Center</a></li>'; and it fixed the problem. Quote Link to comment Share on other sites More sharing options...
Strider Posted June 18, 2011 Report Share Posted June 18, 2011 Tbh it doesn't really matter that much if it goes to www.domain.com or to domain.com, it is still the same web site you are going to. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.