PDA

View Full Version : Redirect issues (I think)?


dj83
05-07-2015, 02:35 PM
Hello,

I changed my url yesterday and now i'm having issues. For example when I login from url http://www.837271.com it keeps me login and I can view the pages fine but when I got to just http://837271.com it asks me to login again on all pages.

Please help because my members are having problems.

Thanks

RichieBoy67
05-08-2015, 04:56 AM
You need something like this. It redirects non www to www.


RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
You need to either redirect www to non www or the other way around. Make sure you have your domain set in Vbulletin to the one you wish to use. I always use the non www myself but up to you.

dj83
05-08-2015, 01:40 PM
Hi,

Which file do I need to add this to?

squidsk
05-08-2015, 03:09 PM
Hi,

Which file do I need to add this to?
Your .htaccess file.

RichieBoy67
05-08-2015, 11:03 PM
Yes, in your root folder if you do not have one then add

.htaccess

If you do change the code I posted to your domain and just add it.