How to remove the categories prefix

By default, WordPress adds a category base of /category/ to all category URLs. If you would like to change the prefix, please go to Admin > Settings > Permalinks. In rare cases, you may want to hide the category prefix entirely.

Example URL with the /category/ prefix. 

Example URL with the /category/ prefix removed. 

By default, category URLs in WordPress contain a prefix, usually /category/. Yoast SEO allows your site to remove the category prefix.
Note: This feature can cause unexpected URL behavior and is not recommended in most cases.

  1. Log in to your WordPress website.

    When you’re logged in, you will be in your ‘Dashboard’.

  2. Click on ‘SEO’.

    On the left-hand side, you will see a menu. In that menu, click on ‘SEO’.

  3. Click on ‘Search Appearance’.

    The ‘SEO’ settings will expand providing you additional options. Click on ‘Search Appearance’.

  4. Click on the ‘Taxonomies’ tab.

  5. Toggle the ‘Category URLs’ switch.

    To include the category prefix, toggle the switch to ‘Keep’.
    To exclude the category prefix, toggle the switch to ‘Remove’.

  6. Save your changes.