WordPress.org

Support

Support » Plugins and Hacks » WP htaccess Control » htaccess remove category base

htaccess remove category base

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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/

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htaccess remove category base’ is closed to new replies.
Skip to toolbar