WP htaccess Control
htaccess remove category base (3 posts)

  1. apech
    Posted 2 years ago #

    Hi, im update my wordpress and my htaccess control plugin, when i try remove the category base in url, redirect me to 404 not found, i have a permalinks, i resubmit the permalinks but, dont works. can you help me?


  2. tyl3r
    Posted 1 year ago #

    Same problem here,

    Removing category base = 404 error

    Removing the author base and the other functionalities are ok.

    For fixing this i opted for https://wordpress.org/plugins/wp-no-category-base/

  3. unforg
    Posted 1 year ago #

    Think the problem is following

    $tax_name = $taxonomy->name;
    $new_rules[$ancestors . '(' . $term->slug . ')' . $suffix . '/?$'] = 'index.php?' . $tax_name . '=$matches[1]';

    so that for category $tax_name = 'category', and this varible is used as query_var, which should be "category_name" for category.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP htaccess Control
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic