Free Wordpress Blog Setup

How to Change the Category Base Prefix in WordPress

By Editorial Staff in Tutorials
How to Change the Category Base Prefix in WordPress

We got several requests asking the same question: How to modify the category base prefix in WordPress? Well there is a very easy way to change the category base prefix, but there is no real solution to completely remove this prefix. In this article we will show you how to change the category base prefix in WordPress, and we will also touch base on a possible way that will allow you to remove the category prefix entirely.

What is a Category Base Prefix?

In your URL structure, you will see something like this http://yoursite.com/category/wordpress

That word category is the base prefix that all WordPress blogs will have as long as they are not using the default permalink structure.

How to Change / Modify the Category Base Prefix?

It is really easy to change that prefix to anything you like. For examples then your URL would look like yourdomain.com/articles/wordpress

First you would need to go in your WP-Admin Panel and go to Settings » Permalinks

There you would see an Optional box which allows you to change the category base prefix and the tag base prefix. (Example Below)

How to Change Category Base Prefix in WordPress

Simply add the text that you like, and you are done. This way is guaranteed to work because it is a hard-coded option within WordPress.

How to Remove Category Base Prefix in WordPress

There is no bug free way to get this done. For those who want no problems with their site, we recommend that you do not even try this because it can lead to problems. There is a plugin that allows you to completely get rid of the prefix, so it would be yourdomain.com/wordpress rather than yourdomain.com/category/wordpress. This plugin is called Top Level Directories.

Known Issues:

This plugin will not work if you have a permalink structure like %postname or %category%/%postname% and there is currently no workaround.

If you add a suffix to your permalink structure (such as .html) you can fix this issue. For example, try %category%/%postname%.html – This is not ideal, but there is no good solution for this issue.

For now we suggest that you stick with a modified base prefix if necessary. All we can do is hope that WordPress adds this feature in the future versions.

What Next?

Digg it
Save This Page
Subscribe to WPBeginner
Stumble it
Free Wordpress Blog Setup

Comments

3 Responses to “How to Change the Category Base Prefix in WordPress”
  1. I didn’t know that it was so easy to change.

  2. If you want to do this, you should probably do this right when you begin your blog.

    Otherwise, search engines which have indexed your

    example.com/tags/some-tag

    page will get a 404 (not found) error when trying to access the page again.

    Some SEO plugins handle this case and give a 302 (redirect) status when you change a permalink, but I’m not sure about tag URLs.

  3. I always like to use the .html suffix as well as changing the prefix – thanks for sharing – a simple but effective technique!

Share Your Opinions

Tell us what you're thinking...
and if you want a pic to show with your comment, then get gravatar!

Please make sure that you have read our Comment Policy.

Due to high volume of request from our readers, we are adding this feature that allows you to stay updated with this post's comments without having to participate in the discussion even though we would love your input as always. Don't worry we hate SPAM just as much as you do, so you will never receive any SPAM messages from our site and that's our promise to you.

Subscribe without commenting

Close Bar