Now if this feature is common knowledge then feel free to call me out, but I have been a WordPress user for some time and had no idea that it existed. Not only that, I could have saved myself a fair bit of time on occasion if I had known about it.
Get a free WPMU DEV plugin, plus free weekly tips and resources for using WordPress.
How often do you get the temptation to change the permalink of a post after you have published it? There are a few different reasons why you might – here are some of mine:
- WordPress’ interpretation of the post title resulted in a mangled permalink (no one likes “%20″s and “—“s in their permalinks, right?).
- You started with one title, then edited it before you hit Publish. The permalink is still based upon the original title.
- You’re going back through some old posts and re-editing titles and permalinks to make them more search engine friendly.
- You just plain don’t like the permalink that WordPress created (perhaps it is far too long), but didn’t notice before you hit Publish.
So, changing permalinks is often a necessary evil. Before I knew of WordPress’ hidden capability, effecting the transition was a real pain. I would use the Quick Redirect Plugin to prime the redirect from the old URL to the new URL, change the permalink in the post screen, then hit Update on both pages as quickly as possible. Bit of a pain – and easy to get wrong.
It turns out that a much better alternative exists, which is to simply do nothing. That’s right folks – if you change a post’s permalink, WordPress will take note and create a redirect from the old to the new, without you having to lift a finger.
Now I’ve had a good dig around and was unfortunately unable to discover what type of direct that WordPress applies to the old permalink – but I suspect it is a 301. If anyone knows for sure, let us know in the comments section.
One last thing – this functionality does not exist for Pages, Categories or Tags. The reason for which is beyond me. Answers on a postcard!