I made a website and bought the domain name with godaddy.com. I used their web hosting also, but then I decided to transfer it over to typepad. Now you have to type in the www to get to my website. If you don’t type it in, it leads you to what the old website looked like. Any idea how this can be fixed???
Next: How Do I Find My Isp’s Domain Name
Previous: How Does One Get A Domain Name Unlocked To Make A Transfer To Another Host?
"Why Do You Have To Put In Www To Get To My Website?" was posted on Wednesday, November 4th, 2009 at 3:32 am.
4 Responses to “Why Do You Have To Put In Www To Get To My Website?”
Leave a Reply
You must correctly set your .htaccess file (in the root directlory of your server, where your “home page” is).
To do this, download your htaccess file and edit it, inserting or updating the text with these lines:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.yoursite.com$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]
That way, if someone types “yoursite.com”, it will be redirected to “www.yoursite.com”.
EDIT: don’t pay attention to the blue highlight of thehttp://www.yoursite.com/$1 here: this stupid editor thinks it is a link. It is NOT!
if u your using any scripts in ur site . there must be a configuraton which points out where ur site is hosted in that it might be http://www.domain.com , so remove the www
famous sites like yahoo , google , kavandeo all are set domains without www
without using www , also helps to speed ur site
The DNS has to be set to point both example.com and http://www.example.com at the server.
The webserver has to be configured to recognise both http://www.example.com and example.com.
You need to set up the correct directory root configuration and also set the dns A and PTR records to point the domain name only at the address.