• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WBXPress.NET

Website Developement Guide

  • apache2
  • nginx
  • mysql
  • php7
  • SSL
  • wordpress
  • genesis
  • caching
  • seo

WordPress Redirect Rule in Apache2 for Old Permalink

Updated on 12th October 2016 Leave a Comment

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:-

http://example.com/2015/03/hello-world.html

But in wordpress it looks like:-

wordpress-permalink

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

Filed Under: apache2, wordpress

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Most Popular Posts

  • Remove/ Defer Render-blocking JavaScripts
  • Customizing Genesis eleven40-pro Theme
  • Free Genesis Child Theme by WBXPress
  • Host Multiple Sites with SSL in Ubuntu 18.04
  • 25 Ways to Boost Website Traffic that Really Work

Recent Comments

  • Ruhul on Customizing Genesis eleven40-pro Theme
  • Priya Agarwal on Customizing Genesis eleven40-pro Theme
  • mimi roy on Remove/ Defer Render-blocking JavaScripts
  • danish choudhary on Customizing Genesis eleven40-pro Theme
  • Radhe on Customizing Genesis eleven40-pro Theme

Copyright © 2021 · Powered by WordPress · Log in