Change your Permalinks Structure without loosing traffic

Written by Tushar. Posted in Blogging

In a earlier post “Best WordPress SEO Permalinks structure for higher rankings” I discussed about the best Permalinks structure. Now there are many issues while changing the permalink structure.

  • If you are migrating from other platform to wordpress
  • If you already have posts in your wordpress blog having different permalink structure.

In the both cases discussed above, if you change permalinks structure you will loose the existing traffic too. The solution to this problem is a 301 redirection of old permalinks. This can be done in two ways.

  • Using Advanced Permalinks Plugin
  • Using .htaccess

Change Permalinks Structure using Advanced Permalinks Plugin

You can get the plugin in WordPress Plugin repository. Install the plugin and activate it.

  •  Goto “Permalink settings page” via Settings >> Permalinks and copy the text from the Custom Structure field.

Change Permalinks structure using 301 redirection


  • Click the “migration link” above Permalink settings page.

Change Permalinks structure using 301 redirection

  •  Now paste the text you copied in step 1 and click the “Add” button.

Change Permalinks structure using 301 redirection

  • Now click the “Defaults” link tab to get back to Permalink settings page.

Change Permalinks structure using 301 redirection

  • Now change your permalinks structure to Post name and then click “Save” button.

Change Permalinks structure using 301 redirection

Change Permalinks Structure using .htaccess

Although this method I won’t recommend for new users. Editing .htaccess file need an experienced wordpress user.

  • Open your .htaccess file which is located in your wordpress root directory using some FTP tool.
  • Before editing take a backup of this existing file.
  • Now paste the following code on the .htaccess file.

RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$$4

  • Replace the “your-domain-name” above with your blog’s domain name.
  • Save the file.

Note: The .htaccess procedure I am explaining is for redirecting permalink structure like, “” to “”
Other permalink structure cannot be redirected using this method. For other structure you will need different code.

In this way you have made a 301 redirection. Now whenever someone visits link like “”, he will be automatically redirected to new permalink “”

Once your redirection starts working, you won’t loose any of the existing traffic. For Google it will take several weeks time to re-crawl your blog and re-index the new URL’s. Till then enjoy redirection.



If you like this post then follow on Twitter and Facebook. If you have any query then contact the author.

Leave a comment