WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 inheriting a Wordpress site where the page names in URLs are very descriptive things like page_id=81. Is this something that I can change globally or do a simple search and replace on?

share|improve this question
have a look at the permalinks info page in the codex. – Milo May 26 '11 at 17:44
Thank you very much! – Scott Shea May 27 '11 at 17:25

By default, WordPress uses a query variable structure for URLs because it doesn't know for sure whether or not your system supports URL rewriting. But if your server does support rewriting, you can enable Pretty Permalinks.

Basically, pages change from http://blog.url/?page_id=81 to http://blog.url/page-slug. Posts change from http://blog.url/?p=82 to http://blog.url/2011/05/post-slug.

You can adjust the settings to use whatever URL structure you need on the Permalinks page within WordPress. So yes, it's something you can change globally.

share|improve this answer
And the nice thing is that the older URLs keep working and will redirect to the "pretty" URLs, so you don't need to worry about broken links. – Jan Fabry May 27 '11 at 13:36
Thank you! This has been very helpful. – Scott Shea May 27 '11 at 17:25

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.