View Full Version : Logging out - if I remove www
Suri.CMS
01-24-2009, 08:03 PM
Hi all,
If I login with my user name & password at my vB forum - http://www.testwebsite.com/forum then it's fine.
Then if I remove www from above URL - http://testwebsite.com/forum , the login does not stay. It logs out automatically. I need to relogin.
Did I mess up any settings (like cookies) ?
Dismounted
01-25-2009, 03:52 AM
There have been plenty of threads on this over the times. Just redirect all traffic from one to the other. Search "yes-www" or "no-www" on Google. The cookies will stick on the domain you entered as the forum URL. Alternatively, you can set the cookie domain to .domain.com (not 100% sure if this will work in all cases).
Suri.CMS
01-25-2009, 04:09 AM
Alternatively, you can set the cookie domain to .domain.com (not 100% sure if this will work in all cases).
I tried it. Did not work.
I am trying the htaccess rule to redirect traffic to www.
Neutral Singh
01-25-2009, 04:49 AM
I use this in my .htaccess
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
blind-eddie
01-25-2009, 05:20 AM
I have read about this many times here as well...I removed www from my site url & forum url via admincp, I also have many custom links in my navbar & removed all www from each link that were for my site.
I then informed my members to edit their short cut to the site from their desk top & remove www from it....No problems from that point.
freewilley
01-25-2009, 09:09 AM
I have read about this many times here as well...I removed www from my site url & forum url via admincp, I also have many custom links in my navbar & removed all www from each link that were for my site.
I then informed my members to edit their short cut to the site from their desk top & remove www from it....No problems from that point.
newer releases from vbulletin should consider this and need to fix this.. I think its a major bug on the script.
Dismounted
01-25-2009, 11:57 AM
I tried it. Did not work.
You may need to log out and log back in for it to take effect.
I am trying the htaccess rule to redirect traffic to www.
I can almost guarantee you that this will work.
newer releases from vbulletin should consider this and need to fix this.. I think its a major bug on the script.
It is not a bug in vBulletin. It is part of the security of cookies. Just redirect all traffic to one or the other and the "problem" is gone.
Suri.CMS
01-25-2009, 03:21 PM
You may need to log out and log back in for it to take effect.
I did that. It did not work.
Dismounted
01-26-2009, 04:52 AM
Have you tried the mod_rewrite rule solution?
Suri.CMS
01-29-2009, 03:24 PM
Have you tried the mod_rewrite rule solution?
Problem Solved with REDIRECT.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R]
freewilley
01-29-2009, 06:35 PM
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R]
I need to use this code on .htaccess? I want a solution for this problem too..
Swampfox
01-29-2009, 10:19 PM
cookie domain changed to..... .yourdomainname.com
solved this problem for me
dont forget the leading "dot"
users will need to log out and back in to get the new cookie
Dismounted
01-30-2009, 04:06 AM
I need to use this code on .htaccess? I want a solution for this problem too..
Yes, you put it into the .htaccess file in the web root directory (public_html).
Suri.CMS
01-30-2009, 06:26 AM
I need to use this code on .htaccess? I want a solution for this problem too..
Yes, Just paste the code at the start of your .htaccess file.
freewilley
01-30-2009, 06:32 AM
Yes, you put it into the .htaccess file in the web root directory (public_html).
Yes, Just paste the code at the start of your .htaccess file.
thank you so much the problem is solved! :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.