Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Old 12-22-2007, 01:03 PM   #1
Member
 
Canadian's Avatar
 
Join Date: Mar 2007
Location: Vancouver
Posts: 83
Canadian is on a distinguished road
To use www prefix or not?

I think it may be something to do with domain or maybe server?????? I really do not know.

I have a couple members mentioning when they go to the site if they use just the http:// (no 'www' prefix) they have to log in again , however if they use the 'www' in front of the url they are automatically logged in.

Does anyone know an answer to this?

I never thought it was an issue or difference when one surfed the net. But maybe their is a reason?

This forum I am using 'MyBB' but I can't see that the forum software would have anything to do with this.

The site is being hosted by go daddy, so I was wondering if their is a way maybe to redirect the non 'www' to the url with the 'www' prefix?

Any thoughts would be greatly appreciated.

I never noticed this before as I always use the www prefix when I go to that forum.
Canadian is offline  
Old 12-22-2007, 01:26 PM   #2
Super Moderator

 
Flashgear's Avatar
 
Join Date: Nov 2005
Location: United Kingdom
Posts: 1,390
Flashgear is on a distinguished road
Send a message via ICQ to Flashgear Send a message via MSN to Flashgear
Normally, if i don't put the www infront of the domain, it does it automagically..
Flashgear is offline  
Old 12-22-2007, 01:58 PM   #3
Groupie
 
angieskidney's Avatar
 
Join Date: Aug 2007
Location: Canada
Posts: 37
angieskidney is on a distinguished road
Send a message via Yahoo to angieskidney Send a message via Skype™ to angieskidney
Okay so I am at this link not logged in: Kidney Friends

I go to click "Login" and when I mouse over to click it I notice it is Kidney Friends - Login (notice the www? Even though I am on the non-www link??)

Now another clue is that when I am logged in I am in the green theme. When I am NOT logged in I am in the blue theme. What is interesting is I am not logged in on the non-www link so it is blue but once I click that login link which IS Kidney Friends - Login the next page that comes up which comes up as Kidney Friends - Login and has the spot to enter Username and Password .. the page is green and already says welcome Angie at the top of the page. (*** I repeat the above steps again later but from this point do something different. I will post it at the end)

As soon as I enter in my info then I am brought to this page http://www.kidney-friends.net/member.php for a matter of maybe 5 seconds which says "You have successfully been logged in.
You will now be taken back to where you came from." and it is green, .. but then I am switched back to the blue page and not logged in and notice it is not a www link again.

So maybe the problem is that the non-www pages and the www pages are linking to each other throwing things off for some people??

(*** When I try again and am at the Kidney Friends - Login page which has the spot to enter Username and Password .. the page that is green and already says welcome Angie at the top of the page, THIS time I decided to not put in my login and pass but just clicked where it says "new posts" since my name is at the top of the page .. and guess what? I am logged in and the page is the green one I have and without putting my info and I can read all posts... interesting. )
angieskidney is offline  
Old 12-22-2007, 06:47 PM   #4
Member
 
Canadian's Avatar
 
Join Date: Mar 2007
Location: Vancouver
Posts: 83
Canadian is on a distinguished road
I was told to change the cookie 'domain' and it worked for me when I tried it.
Canadian is offline  
Old 12-22-2007, 07:06 PM   #5
The Webmaster
 
Moelman's Avatar
 
Join Date: Feb 2006
Location: Michigan, USA
Posts: 3,328
Moelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond reputeMoelman has a reputation beyond repute
Send a message via AIM to Moelman
You should pick one or the other, whichever you prefer, and do an .htaccess edit so that if users go to the other one they are taken to the one you chose.

This code should work to force www:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.yourdomain.com$
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301]
This will also fix the cookies problem since they can only access it through one of the ways.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- The Largest LucasArts Gaming Community on the Internet

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- tell me your comments!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Your #1 place to discuss all things World of Warcraft.
Moelman is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

AdminFusion

All times are GMT +1. The time now is 08:29 PM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77