PDA

View Full Version : working with www or without


FockerFGAA
11-17-2008, 01:04 AM
so when people are on my website some surf the site using www. at the front and some dont. i have always found it annoying that if i use www. to sign in and i click on a non www. link i have to resign in. is there a way to fix this? well i guess i mean its not really a problem but is there a way to bypass this?

Angel-Wings
11-17-2008, 01:12 AM
Yes - just let your Webserver accept incomming Requests on WWW and the Domain itself.

http://httpd.apache.org/docs/2.2/mod/core.html#servername

describes the entire issue very detailed.

FockerFGAA
11-17-2008, 01:42 AM
Ok. And how would I do that. My host is jaguarpc and my domain is through godaddy.

SEOvB
11-17-2008, 05:03 AM
You need to use .htaccess to redirect your members from either www.Yoursite.com or yoursite.com. It not only is a SEO issue to have the same page with different urls like that, but its also a cookie and login issue like you mentioned.


Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite\.com
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=permanent,L]


In a .htaccess file should do the trick for you.