I just set up 301 redirect for this blog

301-redirect.pngJust 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?

Share and Enjoy:
  • del.icio.us
  • Digg
  • Furl
  • StumbleUpon
  • Technorati
  • NewsVine
  • Reddit
  • Slashdot
  • Facebook
  • Google
  • Live
  • Propeller
  • YahooMyWeb

This entry was posted on Tuesday, May 13th, 2008 at 10:16 pm and is filed under Search Engine Optimization. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Be the first to leave a comment.

Leave a Reply