Redirect a Webpage using 301 Redirect
Jan 17
Normally you want to point your http://www.yourdomain.com and htt://yourdomain.com at same location. You want to notify webcrawlers that these two website addresses are the same not different for SEO purpose, then you should redirect one of them permanently on other using 301 redirect.
To move you whole website on (www) prefix, you can put this in your .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=permanent,L]
or this:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

Hello this is amazing site! really cool and it will be a new inspirations for me