In WordPress 3.1 a post can be reached a number of ways, for example each one of these takes you to the same post (where /id is the base)

http://myblog.com/id/1008
http://myblog.com/id/1008/my-slug
http://myblog.com/my-slug

How can I tell WordPress to redirect all of these variations to

http://myblog.com/id/1008/my-slug

?

link|improve this question

feedback

3 Answers

WordPress should do this automatically. Whatever permalink format you have set in Settings > Permalinks should be the URL visitors end up at when they come to a different URL that indicates the same content.

link|improve this answer
feedback

I use a plugin called Redirection (http://urbangiraffe.com/plugins/redirection/) that allows me to set up rules for url redirection. This might suit your needs if you can't get WordPress to do what you want.

James :-)

link|improve this answer
feedback

wordpress does it automatically there is no need to do any thing if you have a custom structure defined in the settings->permalinks it will automatically redirect all the incoming structures to your custom structure or the one you have chosen in the settings in wp back end

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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