Redirecting blogger traffic 06 Jul, 2009 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!


Tags  ·   blogger  ·   redirect  ·   Wordpress  ·   Show Comments ▾

Original design for Tumblr crafted by Prashanth Kamalakanthan.
Adapted for Tumblr & Jekyll by Sai Charan. Customized theme available on Github.

Sai Charan's blog by Sai Charan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Creative Commons License