I have many permalinks across my site that looks like this:
http://www.example.com/market/category/slug-here/
and would like to hide /category/
for all permalinks that contain it, like so:
http://www.example.com/market/slug-here/
I tried to use the following rule but did not find success. Anyone know why?
add_rewrite_rule('market/(.*)', 'market/$matches[1]', 'top');
I've verified that the htaccess is being added. No redirects occur though.
note:
I've moved on from this project. As others confirm answers work I'll look into selecting the best answer.