Jump to content

Admin links goes wrong


Guest

Recommended Posts

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"

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...