Redirecting blogger traffic  


Having moved to my own domain, I was monitoring traffic to my site on Google Webmasters site. I notices that Google still returned results from my blogger-hosted domain. I wanted people to be redirected to my new domain.

Here is what I did:

  • Blogger > Settings > Publishing > Advanced Settings. Chose to redirect to my sub-domain blog.saicharan.in
  • In my domain management cpanel > Subdomains, created blog.saicharan.in and added the home directory as my blog directory.
  • Using the wordpress admin interface, I changed the structure of my blog permalinks to be of blog/year/month/date/title.
Now come the interesting part. While wordpress provided me text to add in my .htaccess, it did not provide the code for redirection. Google helped me add the following line in my .htaccess file that did the trick!

RedirectMatch permanent ^/[0-9]{4}/[0-9]{2}/([a-z0-9]+) http://saicharan.in/blog/$1

That did the trick. Thanks to BlogBloke!

References: http://www.blogbloke.com/migrating-redirecting-blogger-wordpress-htaccess-apache-best-method/