Slug Trim
Take /category/ out of your category URLs. Old links get a 301 redirect and clashes with pages are caught first.
Coming to WordPress.org soon
WordPress puts /category/ in front of every category address, so a category called News lives at example.com/category/news/. Slug Trim makes it example.com/news/.
Nothing changes until you tick the box. Then Slug Trim writes rewrite rules for your categories, sends anyone who opens an old /category/ address to the new one with a 301 redirect, and keeps the rules up to date when you add, rename or delete a category.
If a page already uses an address a category would take, the page keeps it and that category keeps its /category/ base. The settings screen lists every clash so you can rename one of them.
What the free version does
- Removes the category base, including a custom one like /topics/
- Optional: drop parent categories too, so /news/local/ becomes /local/
- 301 redirects from the old addresses, feeds and later pages included
- Clash check, so pages, posts and post type archives keep the addresses they have today
- Rules rebuilt when categories change and removed cleanly on deactivation
Pro
The free version is complete on its own. Pro adds:
- Tag base: /tag/ removed the same way.
- Custom taxonomies: remove the base of any public taxonomy, like a product category.
- Redirect log: see which old addresses still get visits and where they went.
Privacy
No outside requests of its own and nothing stored about visitors.
Questions
Will my old links break?
No. Every old /category/ address gets a 301 redirect to the new one, so search engines move the ranking across.
A category and a page have the same name.
The page keeps its address and the category keeps /category/ until you rename one of them. The settings screen tells you which ones.
What happens when I turn it off?
Category links get /category/ back. The short addresses stop working, so turn it off only if you mean to.
Does it work with plain permalinks?
No. Choose any pretty permalink structure under Settings > Permalinks first.