Changing x.com requests to www.x.com
Redirecting http requests using .htaccess file:
When somebody links to your website, they may link to yoursite.com or to www.yoursite.com. It may sound odd, but Google will assign a separate page ranking for each of these URLs. By editing yoursite.com in the code below to your domain and inserting the text into your .htaccess file, it will solve the problem. Links to yoursite.com will be redirected to www.yoursite.com. This also redirects Google's page rank!
Copy plain text code:
RewriteEngine On
rewritecond %{http_host} ^yoursite.com
rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L]
Paste the text into a text editor (NoteTab, Notepad). Edit yoursite.com to your domain in the second and last lines. Do not change any other characters.
Save the files as ".htaccess". If you are using NoteTab, name the file htaccess
Thanks to stevenhargrove.com/redirect-web-pages/ (Hah!)
Redirecting file requests to a new location
|