How to Change the Category Base Prefix in WordPress In 2024?

Do you wish to modify the category base prefix that is used in WordPress?

If you use WordPress’s default settings, every category page’s URL will have /category/ appended to the beginning.

You are however free to modify the category base prefix in any way you see fit or even eliminate it entirely.

In this tutorial, we will walk you through How to Change the Category Base Prefix in WordPress?

What is Category Base Prefix? Should You Change It?

wordpress platform

Your WordPress site will provide individual pages and RSS feeds for each category that you create.

Go to the archive page for a category to see all of the posts filed under that category.

WordPress creates URLs for category pages with the word “category” appended as a base prefix by default. This helps identify pages and articles from archives associated with categories and tags.

For instance, if you have a category that is titled “News,” then the URL for that category will look something like this:

http://example.com/category/news/

In a manner analogous to this, WordPress appends tag prefixes to the URLs of tag archives.

http://example.com/tag/iphone/

This search engine optimization-friendly URL layout benefits users and search engines by clarifying the nature of the website they are viewing.

The base prefix does not typically need to be modified on the vast majority of websites.

On the other hand, if you are developing a specialized website and would like to use a different term or phrase for each of your categories, you can modify the category base prefix to reflect the new word or phrase.

1. Changing Category Base Prefix in WordPress

Altering the category base prefix in WordPress is a very straightforward process.

You will need to go into your WordPress account, navigate to the Settings » Permalinks page, and then scroll all the way down to the “Optional” area.

How to Change the Category Base Prefix in WordPress

You have the ability to input the prefix that you would want to use next to the category base option in the area labelled “Category base.”

Altering the prefix of the tag base is another option that is available to you.

For instance, you could use “topics” as the new prefix for the phrase. In this scenario, the URLs of your categories will look something like this:

http://example.com/topics/news/

Make sure you click the “Save Changes” button in order to store your preferences permanently.

2. Removing Category Base Prefix from URLs

Many of our users have inquired as to whether or not it is possible to eradicate the category base prefix from WordPress URLs. Your category URLs will be updated to look like this as a result:

http://example.com/news/

It is not a good idea to do this, and we strongly suggest that you do not remove the category base prefix.

The category-based prefix improves users’ and search engines’ ability to differentiate between posts, pages, and categories.

Removing the prefix introduces ambiguity into URLs, which is detrimental to both the user experience and the search engine optimization of your WordPress site.

You could potentially experience certain technical difficulties with the use of several WordPress plugins.

For instance, if you have a category and a page with the same name, or if you use per cent post name as the structure of your URL for single posts, then your website will encounter an infinite redirect loop, which will result in the pages not loading at all.

Having said that, you can use the All in One SEO (AIOSEO) plugin in the event that you still intend to accomplish this.

How to Change the Category Base Prefix in WordPress

If you use this plugin, the best one available for WordPress, your website will be much easier to optimize for search engines.

It also enables you to easily remove the category base prefix with the click of a button.

For the sake of this tutorial, we will be utilizing the AIOSEO Pro license because it comes equipped with the capability to delete category bases in addition to other potent capabilities such as the redirection manager and the link helper.

You can also utilize a version of AIOSEO that is completely free of charge.

The first step in this process is installing and activating the AIOSEO plugin. For additional information and specifics, please refer to our tutorial on how to install a WordPress plugin.

After activation, the AIOSEO setup process will appear before your eyes. To begin, just click the icon that says “Let’s Get Started.”

For additional information, please refer to our step-by-step guide on configuring All-in-One SEO for WordPress.

How to Change the Category Base Prefix in WordPressAfter that, under the administrative dashboard of your WordPress installation, navigate to All in One SEO Search » Appearance and select the ‘Taxonomies’ option.
After that, navigate to the Categories area and select the ‘Advanced’ tab from the menu that appears there. From this point forward, all you need to do is click the toggle to the Yes position for the ‘Remove Category Base Prefix’ option.
How to Change the Category Base Prefix in WordPress

When you are finished, you must ensure that you click the “Save Changes” button.

4. Setting Up Redirects After Changing Category Base Prefix

If you are modifying or removing the category base prefix on a brand-new WordPress website, then there is nothing else that you need to do.

If you are doing this action on an already-existing website, however, users who navigate to the previous category page will be met with a 404 Not Found message.

To remedy this issue, you will need to set up a redirect. This redirect will ensure that both search engines and regular visitors are sent to the appropriate category page on your website in the correct manner.

Using the All in One SEO (AIOSEO) plugin will make redirection configuration in WordPress significantly simpler.

From the WordPress admin panel, navigate to the All in One SEO » Redirects menu, and then click the ‘Activate Redirects’ option. This will get the process started.

How to Change the Category Base Prefix in WordPress

When it is ready to use, navigate to the ‘Redirects’ tab to configure the redirection settings.

Simply put the URL you wish to redirect in the section labelled “Source URL” and add the new destination for the link in the field labelled “Target URL.”

When it comes to the redirect type, you have the option of selecting “301 Moved Permanently” from the dropdown menu.

This will permanently migrate all of your previous category pages to the new location.

Quick Links:

Conclusion: How to Change the Category Base Prefix in WordPress?

When you are finished, you must ensure that you click the button labelled “Add Redirect.”

Now that you have implemented your new category prefix, all of your users and search engines will be sent to the appropriate URLs.

We sincerely hope that this post was helpful in guiding you through the process of learning how to alter the category base prefix in WordPress.

aishwar
This author is verified on BloggersIdeas.com

I am the Founder of GizmoBase and also cofounder at Affiliatebay.net, a digital marketing agency that specializes in content and data-driven SEO. With over 7 years of experience in digital marketing and affiliate marketing, I have developed a deep understanding of various domains, including ecommerce, startups, social media marketing, make money online, affiliate marketing, and human capital management. I am passionate about sharing my knowledge and expertise in these areas to help businesses thrive.

Leave a Comment