WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm doing the migration of a site, from MovableType to WordPress. The website contains around 3500 posts and when I uploaded the information to the new version of the site, the links have been altered.

Old site link (note that the category-name and the nodenumber are not fixed values. The nodenumber is a number that changes in each post):


New site link: http://websitename.com/category-name/title-of-the-post

My question is the following:

What would be the easiest and effective way to configure my Htaccess file to do a redirection from the old links to the new ones? There might be a simple way than to write them all by hand.

share|improve this question
up vote 1 down vote accepted

Have you looked at the Redirection plugin? You could make a rewrite rule for something like this: /([^\/]+/([1-9]+)/([^/]+)/? and then have it redirect to http://newsite.com/$1/$3, or something along those lines at least. I think you could do this with .htaccess as well, but I'm not familiar enough with the format for it to give you code in good conscious.

share|improve this answer
Redirection plugin link: wordpress.org/extend/plugins/redirection – its_me Jul 14 '12 at 18:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.