Log in

View Full Version : URGENT - Please help with redirect problem


vb_mp
03-02-2008, 08:23 PM
Hi, [FIXED, READ BOTTOM OF THREAD]

Can someone please help me out with this.

I went to admincp->vbulletin options->Site Name/Url/Contact details and
I set
URL of your forum: http://www.mysite.com/forum
URL of your homepage: http://www.mysite.com/forum

in my http://www.mysite.com/index.php file I have:
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.mysite.com/forum" );
?>
so that anyone accessing my url without the /forum gets sent to /forum

Yet, even in admin in top right corner the Forum Home Page link links to http://mysite.com/forum... and if I access http://www.mysite.com I get redirected to http://mysite.com/forum

This will hurt my seo ranking as there will be duplicates of links with and without www...

Where can I fix this so that everything works from www.mysite.com with the www.?

I tried adding a mod rewrite rule to redirect non www. requests to www... but that just goes into an infinite loop... it seems there is something inside vbulletin which keeps sending my requests to the non www. version

Please help?

--------------- Added 1204497719 at 1204497719 ---------------

Actually, I just checked and my whole admin works from http://mysite.com/forum/admincp... without the www. too

--------------- Added 1204499035 at 1204499035 ---------------

Figured it out

I needed to uncomment:
#RewriteBase /forum/
in the .htaccess file