WordPress.org

Forums

WP htaccess Control
htaccess remove category base (3 posts)

  1. apech
    Member
    Posted 11 months 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?

    https://wordpress.org/plugins/wp-htaccess-control/

  2. tyl3r
    Member
    Posted 8 months 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
    Member
    Posted 1 month 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.

Reply

You must log in to post.

About this Plugin

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

About this Topic