If your WordPress site has a custom permalink structure but you don't want that default base slug for the taxonomy pages then use this code snippet to remove it.
/* Advanced Scripts Method to Add This Snippet */ /* Title: Remove Post Base Slug from Taxonomy URLs Type: PHP: Custom Code Location: Plugins Loaded Priority: 10 */ add_filter( 'register_taxonomy_args', function( $args, $taxonomy ) { if( 'category' === $taxonomy && is_array( $args ) ) $args['rewrite']['with_front'] = false; return $args; }, 99, 2 );