Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (id242), 24 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/23/08
Posts: 10
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#186451 - 06/12/07 05:57 PM www vs. non www issues for IE
Mitch P. Offline

old hand
Registered: 06/23/06
Posts: 827
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
http://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?
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#186452 - 06/12/07 06:07 PM Re: www vs. non www issues for IE [Re: Mitch P.]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
no - that is correct.

http://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.
Top
#186453 - 06/12/07 06:08 PM Re: www vs. non www issues for IE [Re: Ian]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
You might be better have your site set-up so that any requests for domain.com/* are directed to http://www.domain.com/*
Top
#186455 - 06/12/07 06:40 PM Re: www vs. non www issues for IE [Re: Ian]
Mitch P. Offline

old hand
Registered: 06/23/06
Posts: 827
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:
http://www.ubbcentral.com/forums/ubbthre...true#Post172823


Edited by Mitch P. (06/12/07 06:53 PM)
Top
#186463 - 06/12/07 07:41 PM Re: www vs. non www issues for IE [Re: Mitch P.]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Awwe, one of my favorite topics and it's solved by the time I get here :sniffle:
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#186467 - 06/12/07 07:43 PM Re: www vs. non www issues for IE [Re: Gizmo]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
.htaccess
 Code:
RewriteCond %{HTTP_HOST} ^yoursite.tld$
RewriteRule ^(.*) http://www.yoursite.tld/$1 [QSA,L,R=301]
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#186468 - 06/12/07 07:44 PM Re: www vs. non www issues for IE [Re: Gizmo]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
did it work ?
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#186493 - 06/12/07 11:01 PM Re: www vs. non www issues for IE [Re: Mark S]
Mitch P. Offline

old hand
Registered: 06/23/06
Posts: 827
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. \:\)
Top
#186494 - 06/12/07 11:34 PM Re: www vs. non www issues for IE [Re: Mitch P.]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
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...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
Today at 12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10491 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image