How to Strip the Category Base in WordPress

By default all categories on your WordPress site are prefixed with the word /category/ or with whatever prefix you set inside your permalink settings. This helps to distinguish between posts and pages on your site and category archive pages, which can occasionally have names similar to your posts and pages.

For some users, this category base is unnecessary and one of our most common feature requests from those users is to add the ability to remove it. As of AIOSEO 4.2.0, we now have the option to strip the category base.

How to Remove the Category Base

Removing the category base using AIOSEO is as simple as toggling an option in the Category settings.

To do that, first navigate to the AIOSEO > Search Appearance > Taxonomies section from within WordPress and then Click on the Advanced tab in the Categories taxonomy:

Once there, you will see the new option “Remove Category Base Prefix” listed beneath the Robots Meta Settings.

Set this to “Yes” and then click on “Save Changes”.

And that’s it! From now on your category pages will automatically redirect to the URL that no longer includes the prefix.