Previous Thread
Next Thread
Print Thread
Hop To
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.com
http://mydomain.com
www.mydomain.com
mydomain.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
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
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
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
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
UBB.threads Developer
UBB.threads Developer
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:


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 16,367
Likes: 126
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,367
Likes: 126
.htaccess
Code
RewriteCond %{HTTP_HOST} ^yoursite.tld$
RewriteRule ^(.*) http://www.yoursite.tld/$1 [QSA,L,R=301]


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
did it work ?


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. smile

Joined: Jun 2006
Posts: 16,367
Likes: 126
UBB.threads Developer
UBB.threads Developer
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...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Profile avatar storage settings
by SenecaFlyer - 12/05/2024 1:24 PM
Not allowing attachment over 2m
by ehill - 12/03/2024 3:16 PM
New Admin Here
by SenecaFlyer - 12/02/2024 4:14 PM
Who's Online Now
2 members (Ruben, SenecaFlyer), 929 guests, and 67 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)