WordPress.org

Ready to get started?Download WordPress

Forums

Redirecting category base only (3 posts)

  1. lonewolfonline
    Member
    Posted 6 years ago #

    Hi,

    Does anybody know how to redirect the category base only, leaving the category structure intact?

    Example (maybe clearer)
    Here are urls to two categories

    http://www.example.net/category/this-is-my-cat-1/
    http://www.example.net/category/this-also-is-my-cat-2/

    However if somebody removes the category from the url and just tries to go to http://www.example.net/category/ they get a 404.

    How do I redirect http://www.example.net/category/ to http://www.example.net/a-static-page/ while keeping original links intact. The redirects I have tried redirect /category/ as well as anything after, breaking the site.

    Thanks in advance

    Regards
    Tim

  2. devwhatev
    Member
    Posted 6 years ago #

    This is exactly what I'm looking into right now. I will post a solution if I find one.

  3. devwhatev
    Member
    Posted 6 years ago #

    I ended up doing away with the mandatory Category Base structure by using this plugin:

    Category Base Removal Plugin
    http://benpartch.com/personal/remove-the-category-base/

    It doesn't seem to be working for everyone, but it's working perfectly on my server. Might be worth a shot if you can't get this resolved.

    But in all honesty, I was thinking about that issue and it probably isn't that big of a deal, as far as SEO is concerned, as long as you don't explicitly link to yoursite.com/category_base/.

    And if you're into PageRank sculpting & siloing with nofollow and noindex, etc then it's probably even less of an issue, really.

    I reserve the right to be wrong on this, though. Do your due diligence.

Topic Closed

This topic has been closed to new replies.

About this Topic