Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
3  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.