PDA

View Full Version : htaccess 301 redirects


Stevie GooGs
10-06-2010, 01:27 PM
I have an issue with my forum, everything is installed on .com but we have to point everything to .co.uk including the forum. When i add the redirects and go to the forum when i go to login it says thanks and redirects but it kicks me back to the forum like i have not logged in?

RewriteCond %{HTTP_HOST} ^www.mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.co.uk/$1 [R=301,L]

If i change the vbsettings for forum to the .co.uk it does not work

If i go to the .com domain and login its fine?

What i want is the forum to just be .co.uk and users to be able to login.

If i manually put in

http://www.mydomain.co.uk/admincp/index.php and login it kicks me back to the same login page, if i replace the .co.uk with .com it works fine.

Bradley_Wint
10-10-2010, 02:38 AM
At the end of the day, will you be using the .com and .co.uk addresses simultaneously? Or just one?

Stevie GooGs
10-11-2010, 06:06 AM
Hi Bradley i got this resolved at vbulletin.com,

What do you have entered in for your cookie domain under Settings -> Options -> Cookie and HTTP Header Options?

Cookie rules, enforced by the browser, do not allow sharing cookies between .com and .co.uk. I suggest leaving the cookie domain blank and it should allow users to login at the .co.uk domain.

If you still have problems, set the URL of your site under Settings -> Options -> Sitename / URL / Contact Details to point to the .co.uk domain name.

Bradley_Wint
10-11-2010, 06:12 AM
Glad it's sorted out.