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,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
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,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
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 6:53 PM.
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
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,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
.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,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
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
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
4 members (Ruben, ahmed047, Nightcrawler, 1 invisible), 631 guests, and 116 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.0
(Preview build 20240506)