• Resolved ivovic

    (@ivovic)


    Hi guys.

    Is there a way to set the rewrite rules for categories so that they appear as pages? — Or alternately swap the rules?

    Eg, I have:
    yoursite.com/category/catname

    what I want is:
    yoursite.com/catname

    I’d be prepared to live with having /pages/ before pages to make that happen if necessary.

    Does this require hacking core, or is someone perhaps aware of a trick or plugin I can make use of?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m still using 2.3.3 but…if you go into Options > Permalinks

    Change the custom structure to

    /%category%/%postname%

    If I’m understanding your post right, that should get you where you need to go.

    Thread Starter ivovic

    (@ivovic)

    No, sorry, I didn’t really explain myself in very much detail.

    I’m talking about browsing the category archives themselves, not the single posts… like when you click a category in the sidebar.

    What you end up with has the word category (or a word of your choosing) before the actual category slug. I want to remove that level entirely, the way it is for pages.

    … even if that means I have to have a term before the page slug instead of a term before the category slug.

    Thread Starter ivovic

    (@ivovic)

    Oh hey nice find…

    It’s dirty but workable with a view to finding a better solution 3 years from now…

    I don’t care when a nice solution comes about, I just don’t want to start a new site and fill google with links that will eventually turn to 404s.

    Thanks a lot for the help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rewrite URLs and Categories’ is closed to new replies.