Forums

URL Rewriting? (3 posts)

  1. mk12
    Member
    Posted 2 weeks ago #

    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…

  2. eugenealegiojo
    Member
    Posted 2 weeks ago #

    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.

  3. mk12
    Member
    Posted 2 weeks ago #

    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!

Reply

You must log in to post.

About this Topic