|
Joined: Jun 2006
Posts: 811
old hand
|
old hand
Joined: Jun 2006
Posts: 811 |
I visited a user today who was having issues. He's using IE. What I found was, if he's logged onto the board at wwww.mydomain.com/forums/ubbthreads, and then visits a page at mydomain.com/forums/ubbthreads (without the "www") he shows as not logged in. He has to log-in again while on the non-www url. In my domains for HTTP Referer Check, I have all of these set: http://www.mydomain.comhttp://mydomain.comwww.mydomain.commydomain.com This wouldn't be such a big deal, but I have parts of my site that users have to be logged in to visit. For whatever reason, sometimes people will email links without the "www" Is there something I can adjust on my end so that when someone is logged in (no matter what URL they started at) they can jump around to both versions of the URL and still show as logged in?
|
|
|
|
Joined: Jun 2006
Posts: 3,839 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,839 Likes: 1 |
no - that is correct. www.mydomain.com is technically a sub-domain to mydomain.com and is therefore treated as a separate domain as far as the cookies are concerned. This is not a limitation with threads.
|
|
|
|
Joined: Jun 2006
Posts: 3,839 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,839 Likes: 1 |
You might be better have your site set-up so that any requests for domain.com/* are directed to www.domain.com/*
|
|
|
|
Joined: Jun 2006
Posts: 811
old hand
|
old hand
Joined: Jun 2006
Posts: 811 |
Thanks IAN! What's the best way to go about this? Do I set up the redirect right in my DNS manager? Or, should I edit my htaccess file? I think I remember Gizmo commenting on this very thing. I'll do a search. Found it: https://www.ubbcentral.com/forums/u...l&topic=0&Search=true#Post172823
Last edited by Mitch P.; 06/12/2007 5:53 PM.
|
|
|
|
Joined: Jun 2006
Posts: 16,367 Likes: 126
|
Joined: Jun 2006
Posts: 16,367 Likes: 126 |
Awwe, one of my favorite topics and it's solved by the time I get here :sniffle:
|
|
|
|
Joined: Jun 2006
Posts: 16,367 Likes: 126
|
Joined: Jun 2006
Posts: 16,367 Likes: 126 |
.htaccess RewriteCond %{HTTP_HOST} ^yoursite.tld$
RewriteRule ^(.*) http://www.yoursite.tld/$1 [QSA,L,R=301]
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 811
old hand
|
old hand
Joined: Jun 2006
Posts: 811 |
Yes, like a charm. However, with every little switch, something else that pops up. Turns out, I have quite a few users linking to images from a photo gallery on my site. A lot of those images do not contain the "www" in the URL. So, for some users they aren't showing up in avatar fields or posts. I think it's mainly with IE. (I see them fine with Firefox.). Going forward, any image URLs they copy will have the "www", but for anything already linked to without the "www" they get the red x. OK Gizmo, here's your chance...solve this one.
|
|
|
|
Joined: Jun 2006
Posts: 16,367 Likes: 126
|
Joined: Jun 2006
Posts: 16,367 Likes: 126 |
I don't see why that'd happen, if you used my code above in your .htaccess it should transparently forward them to the new image...
|
|
|
2 members (Ruben, SenecaFlyer),
929
guests, and
67
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|