Amazon's Early Black Friday Deals are going live now. Check out here.

How to Change or Remove Category Base on WordPress

By default, your category archive page URL will be like this:

https://www.yoursitename.com/category/something

Default Category base

In the above URL:

"category" is called category base and it is the default category base for all categories of your blog.

The value you see in the place of "something" is called "Slug." It is the one that you have provided while creating a WordPress category.

Well, we know what is the category base right now. Let's see the steps to change or remove it.

Change Category Base on WordPress

You can quickly and easily change category base on WordPress, and you do not need a plugin to do that.

Here are the steps:

  • angle-right
    Go to Settings > Permalinks.
  • angle-right
    Scroll down until you see "Optional" section where you can find "Category base."
  • angle-right
    Now, enter the category base you want in the field beside "Category base." In this instance, I want to change category base to "ideas."
  • angle-right
    Click "Save Changes" button.
Provided ideas as Category base

That is all. Now, your category archive page URL will be like this:

https://www.yoursitename.com/ideas/something

Changed Category base

Make sure to set up a redirect from old category URL to new one.

Note: The default tag base is "tag." You can change tag base too from here (type the tag base you want in the field beside "Tag base" and then click on "Save Changes" button).

Remove Category Base on WordPress

I do not recommend removing category base because it makes the URL as a non-user-friendly URL.

However, if that is what you want to do, then follow the below steps.

If you have Yoast plugin installed on your blog, then you can use it to do this task.

  • angle-double-right
    In Yoast settings, go to Advanced > Permalinks tab.
  • angle-double-right
    Under "Change URLs" section, you can see "Strip the category base (usually /category/) from the category URL."
  • angle-double-right
    Beneath it, you have the option to keep or remove category base. By default, "Keep" is selected.
  • angle-double-right
    Select "Remove" to remove category base from the category URL.
Remove selected to remove Category base
  • angle-double-right
    Click on "Save Changes" button at the bottom. 

That is all and do not forget to set up a redirect from old URL to New URL.

Alternative Way

If you are not a Yoast plugin user or do not want to use it, then you can try it out this "Remove Category URL" plugin. No configuration is needed for this plugin to work.

Also, you do not need to do any redirection when using this plugin. The plugin will do that for you.

I hope that the information in this post is useful to you. Like the information in this post? Share with your friends.

How to Change or Remove Category Base on WordPress

Click to Tweet This Post

Also see: