WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Rewrite URLs and Categories (5 posts)

  1. Ivovic
    Member
    Posted 6 years ago #

    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?

  2. bekabug
    Member
    Posted 6 years ago #

    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.

  3. Ivovic
    Member
    Posted 6 years ago #

    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.

  4. bekabug
    Member
    Posted 6 years ago #

  5. Ivovic
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.