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
  • In my domain management cpanel > Subdomains, created 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]+)$1

That did the trick. Thanks to BlogBloke!