I've got a custom post type defined to handle a company's distributors. It takes a post and routes it under /distributors/abc-truck-sales. I noticed that loading /distributors/ matches up to a category_name and is queried as such.
I've got a custom rewrite rule that is supposed to make /distributors/ into a redirection to the index.php
add_rewrite_rule('distributors/?$', 'index.php?show=all&post_type=distributor', 'top');
This rule is correctly added to the rewrite rules, and yet the rule '(.+?)/?$' => 'category_name=distributors', always matches first!
What do I have to do to prevent a category view? Unset it?
Update 1:
Changing the permalink category and tag bases accomplished nothing. Except prefix the paths, of course. If I load up /distributors/ it still assumes that it's a category (and I can change it to any old category and it'll load it).