Saturday, November 20, 2010

How to make my url of my website change http://www.mysite.com when http://mysite.com is typed in the address?

just when google.com is typed it automatically changes to www.google.comHow to make my url of my website change http://www.mysite.com when http://mysite.com is typed in the address?
If you're using Apache, you create a .htaccess file with the following:



RewriteEngine On

RewriteCond %{HTTP_HOST} ^mysite.com

RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]

No comments:

Post a Comment