WordPress Redirect Rule in Apache2 for Old Permalink

It is always good idea to host your blog in wordpress platform rather than blogger platform. If you ever migrated your existing blog from blogger to wordpress platform, you need to fix permalink structure.

In Blogger, generally permalink looks like:-


But in wordpress it looks like:-


Now, in the mean time your valuable content which were liked by many people and the links of your content were shared by many people. So, when you shift from blogger to wordpress you will lose all those links that people loved.

But do not worry you can redirect all those old links to the new links of contents. You just need to create a redirect rule from this permalink generator.

And add this rule at the end of your .htaccess file.

RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/([^/]+).html$ http://example.com/$3

Leave a Reply

Your email address will not be published. Required fields are marked *