WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess redirects and changing category links (2 posts)

  1. croakingtoad
    Member
    Posted 7 years ago #

    I want to change the links in the category section on the sidebar and remove the /category so instead of this-

    http://blog.roanokehousehunter.com/category/other-stuff/restaurant-reviews/

    I would have this-

    http://blog.roanokehousehunter.com/other-stuff/restaurant-reviews/

    Similar to how the pages are handled. Is this possible without messing up the pages and if it is possible, what would I need to put in my .htaccess to handle the 301 redirect from the old url to the new?

    Thanks!

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Is this possible without messing up the pages

    Not really, no. The problem is that with that scheme, you don't have any easy way to define which ones are pages and which are categories. It could be done, but you'd have to heavily rewrite the WP-Rewrite class to do it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags