I just set up 301 redirect for this blog
Just simple post to announce that it is good to have a 301 redirect. It’s been long overdue! So negligent of me, all webmasters should put this step right near the top of the to-do list when setting up websites. Now, this will tell search engine that both domain.com and www.domain.com are actually the same and permanently redirected to the www.domain.com. As search engines view both as different sites, through this 301 redirect, it gives your site a big score by telling there is no duplicate content here!
So the simply way is to setup a .htaccess file by using a text editor like notepad. Save it as .htacess and enter the follow lines of codes in the file:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
Of course, replace the domain with your own domain names. Take note this only works in a UNIX or LINUX server with Apache mod-rewrite turned on.
Next, use a FTP software to upload this saved .htacess file to the root directory of your website, ie, the place where your index.html file is located. Simple, huh?















