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 am about to change the slug for my page's permalink. Since I dont want to loose the traffic, i would like to redirect the visitors to the new more SEo friendly link.

Can I achieve this with the mod_rewrite? (I use Apache on Ubuntu)

Or any other easier alternative? (I prefer not using any plugin if possible)

Many Thanks,

share|improve this question
up vote 0 down vote accepted

Go with the easiest alternative of all: do nothing.

No, really: WordPress itself handles redirects for renamed Post Titles.


Apparently, the retention of _wp_old_slug only happens for non-hierarchical objects.

So, since Pages are hierarchical, they don't get to enjoy the auto-magic slug redirection.

Therefore, for static Pages or other hierarchical post objects, I would recommend using a 301 Redirect Plugin. There are several to choose from.

share|improve this answer
Sorry, thats not a post. Its a page. I don't think doing nothing would work, as I have tried. Thanks – Houman Jan 26 '12 at 20:04
As far as WordPress is concerned, a blog post is the same as a page. They're both posts, just with different post types. – Chip Bennett Jan 26 '12 at 20:08
I just have changed the slug of my permalink from www.example.com/products to www.example.com/Banana. After saving it www.example.com/products doesn't work any longer. I was expecting the visitor would be redirected to www.example.com/Banana instead. – Houman Jan 26 '12 at 20:12
Did you change the slug, or just the title? – Chip Bennett Jan 26 '12 at 20:25
See updated answer. _wp_old_slug is only retained for non-hierarchical post objects. – Chip Bennett Jan 26 '12 at 20:32

I've changed permalinks on sites before and I was scared it was going to ruin things, but as Chip stated, doing nothing worked. WordPress took care of it for me. No action taken on my part and all the links worked just fine.

Mark Jaquith created a plugin to help with this, but on the plugin page he explains that the plugin isn't needed beyond WP 2.1 because the functionality is part of the core now. (http://wordpress.org/extend/plugins/redirect-old-slugs/)

share|improve this answer

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.