To remove the category base from WordPress archive URLs, use a supported category-base removal feature such as Rank Math’s Strip Category Base option, after checking URL conflicts and redirects. The default /category/ prefix is not the same as a category included in an individual post permalink.

Identify which URL you want to change
| URL type | Before | Possible after |
|---|---|---|
| Category archive | example.com/category/news/ | example.com/news/ |
| Post permalink with category | example.com/news/article/ | example.com/article/ |
| Custom category base | example.com/topics/news/ | example.com/category/news/ or another base |
Changing a category archive base does not automatically remove categories from individual post permalinks. WordPress provides separate permalink structure and category-base settings. Leaving the category-base field blank generally restores the default rather than removing the prefix. See the official permalink settings documentation.
Remove the category base using Rank Math
On a staging copy, open Rank Math SEO → General Settings → Links and locate Strip Category Base. The official Rank Math guide documents this feature. If it is not visible, check the plugin’s mode and current version. Enable it only after mapping old category archive URLs to their intended new destinations. Do not run multiple category-base removal plugins together.
Check for URL conflicts before going live
A category named news may conflict with an existing page, custom post type archive or another route at /news/. Nested categories, pagination and feeds require separate testing. List category slugs and compare them with existing public routes. If there is a conflict, keeping the existing prefix or selecting a unique base is safer than forcing a short URL.
Set up and test permanent redirects
Back up the site using the backup procedure. After enabling the feature, request each old archive URL in a signed-out browser or HTTP testing tool. Verify a permanent 301 or 308 redirect to the correct equivalent and a successful final response. Avoid redirect chains and do not send every old archive to the homepage. Google’s redirect documentation explains permanent redirect behavior.
Update internal links and indexing signals
Verify navigation menus, breadcrumbs, sitemap URLs, canonical tags, pagination and category links embedded in articles. Clear relevant caches and inspect examples in Search Console. Our crawling and indexing guide explains why discoverability matters. Keep redirects available for visitors and external links that still use the previous addresses.
What about WooCommerce or post permalinks?
Product categories have their own taxonomy and URL handling. Do not apply blog-category rules to them indiscriminately. To remove a category segment from individual blog post URLs, plan a separate permalink migration with a complete old-to-new post mapping. For an established site, a cosmetic URL change may not justify the migration risk.
Frequently asked questions
Does removing /category/ improve rankings?
There is no guaranteed ranking benefit. A consistent, working URL structure matters more than a shorter prefix.
Can I remove the prefix by leaving the field blank?
No, the blank setting normally uses WordPress’s default category base.
What if category pages return 404?
Check the rewrite configuration, collisions, plugin settings and cache. Restore the previous configuration if needed and fix the migration on staging.





