• For example, is there an easy way to have the url for my “About” page be example.com/about, rather than example.com/?page_id=2 ? I know how to make apache rewrite rules, in httpd.conf, but I’m not sure how it would determine the corresponding page id, without making a rule for every single page…

Viewing 2 replies - 1 through 2 (of 2 total)
  • mk12,

    You can do this by changing your Settings->Permalinks, then select Custom Structure. Type %postname% in the text box and save changes. Done.

    Hope it helps.

    Thread Starter mk12

    (@mk12)

    Wow that was so easy! I just copied the code into httpd.conf and it worked. I actually did the year/month one since that’s what I want with posts, but with pages it just does /page. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘URL Rewriting?’ is closed to new replies.