![]() |
User login dependant on if there's a "www." in the url
I've noticed that if you're logged in (on my site and other adoptable sites using this script) that if you log in on "www.site.com/etc" and then switch over to just "site.com/etc" they are logged out. Is there any way around this? Such as automatic redirection to "www.site" or something else?
Thanks in advance. ;) |
RE: User login dependant on if there's a "www." in the url
This is because the cookies are set this way.
Perhaps on when it sets the cookies, have it set it both ways? Some people like www, some don't, so you can't win by redirection, I think... :P |
RE: User login dependant on if there's a "www." in the url
That's odd. The cookies should work for both versions. I'll look into it.
|
RE: User login dependant on if there's a "www." in the url
put this in your .htaccess to redirect all non www to www
Code:
Options +FollowSymLinks |
RE: User login dependant on if there's a "www." in the url
Hmm doesnt seam to work. :\
I don't need to enable htaccess anywhere, do I? |
RE: User login dependant on if there's a "www." in the url
have you change the yoursite.com to your domain?
If it still doesn't work, try to put this code in your .htaccess instead Code:
RewriteEngine On |
RE: User login dependant on if there's a "www." in the url
This is what my .htaccess looks like with your code:
Code:
RewriteEngine On |
RE: User login dependant on if there's a "www." in the url
You forgot to put a "^" before arvyre\.com$ on line 3
Code:
RewriteEngine On |
RE: User login dependant on if there's a "www." in the url
Quote:
The .htaccess still doesn't seem to work. :S Any other ideas? |
RE: User login dependant on if there's a "www." in the url
hmm...this should be a lot easier if you configure it throught cPanel...don't you have cPanel access to your website?
|
All times are GMT -5. The time now is 09:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.