Archives of AyushSaran.com/blog

This blog is no longer updated, but the archives are available for browsing.
You can follow the new tumbelog at blog.ayushsaran.com.

301 Redirect non-www requests to www.yoursite.com

This is to help with your SEO

use an FTP client to log into the main WWW root or Public_Html [depending upon your host]

find the file called .htaccess [make sure its writable by checking the CHMOD attributes]

add these lines to your .htaccess file

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

remember to replace yourdomain.com with the actual name of your domain

The Buzz {1 trackbacks/pingbacks}

  1. Pingback: Resources you May have Missed - DeDestruct - A Multi-Author Web Design Journal on November 15, 2007

Leave Your Own Comment

You can follow any responses to this entry via its RSS comments feed. You can also leave a trackback if the inclination is there.

Grady (theme) Return to the Top ↑