Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Change the Category Base Prefix in WordPress

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
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

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

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 rather than 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.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Paul Minors says:

    Hi there. Great article. I’m looking at doing something similar, but I’m not changing the category or tag base. I’m changing the base of “portfolio” pages. There isn’t an option to edit the case in the permalink settings. Is there another way to edit bases in my wordpress files?

  2. Karunakar says:

    How to add a custom text to tag url slug?

    For example:

    my tag_base is “beginner”
    my tag is: “wp”

    Then normally url becomes:

    Here I want to add text “help” to the slug of tag “wp” to make url as:

    I don’t want to go with a single tag slug edit. I want to append “-help” to all existed tags slugs and upcoming tags.

    How can i do it?

    Please help.

    Thank you.

  3. spezially says:

    Hi ,
    what’s the easiest way if I wanted to have my general post page + all the posts that refer to the general post category bring up a prefix (ex.: . )

    so far the only solution I can think of is a 301 redirect in htaccess but I’m looking for something smoother….

  4. Conal Stubbs says:

    I’ve found a somewhat odd way of removing the category part.

    Just to explain, I’m creating a portfolio site with a category called ‘blog’ for blogposts / latest news and one called ‘work’ for completed design projects. Obviously the desired effect is to have the url as (or work) rather than, which looks just a bit naff I’m sure you’ll agree.

    By simply putting a full stop in the category base entry field WordPress seems to ignore this requirement in the url and creates the leaner, cleaner version that was wanted.

    Has anyone else seen this before? Do they know of any issues with it? I’m just getting to grips with WordPress having taught myself HTML, CSS and PHP, so I’ve only tried it on a local setup and with the twenty eleven theme.

    • WPBeginner Support says:

      This is an interesting approach. Did you consider using category archive templates, like category-blog.php and category-work.php? After using these templates you can use WordPress seo plugin to remove category slug from url and you will get your blog posts on and Work posts on

  5. ashley says:

    perfect. thanks!

  6. dinesh kumar says:

    it’s working but only one category not all category
    i am use another category page will get a 404 (not found) error when trying to access the page again.

    please update here
    I want url overwriter

  7. Santiago says:

    In this blog did you have problems? I can see that you remove the category base and looks pretty good. Could tell us how you do this?

    • WPBeginner Support says:

      If you are using WordPress SEO you can go to SEO » Permalinks check the box that says Strip the category base (usually /category/) from the category URL.

      • iAn says:

        I updated my WordPress SEO Plugin today and I got this message:

        “The feature for stripping the category base will be removed in version 1.6 of WordPress SEO. We suggest using FV Top Level Categories if you insist on keeping this but do know that the feature is very error prone and not that important for your SEO.”

        I guess you are using such feature too.

        I worry that I will lose ranking if I “unstrip” the category in the URL. Any suggestion for this?

  8. Arup Ghosh says:

    Thanks to SEO plugins like yoast, they have added an option for this on their current version.

  9. gnuboss says:

    Thanks for the info, this is a quick and simple, although often overlooked way to sort the category and tag base issues out..

    To entirely remove the Category base I used to use a plugin called WP No Category Base which worked well, but can cause problems when you have a page and category with the same name – E.g. Page = Hosting ( and a Category = Hosting ( – but using .html suffix may help — but there are bound to be implications.

  10. web design cheltenham says:

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

  11. Name Removed [TOS Violation] says:

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

    Otherwise, search engines which have indexed your

    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.

  12. Nimit Kashyap says:

    I didn’t know that it was so easy to change.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.