Latest Tech and Tips

How to Change the Category Base Prefix in WordPress

10

Do you desire to change the category base prefix in WordPress? By default, WordPress instantly includes/ category/ as a prefix to URLs for all category web pages. In this write-up, we will certainly reveal you how to change the category base prefixin WordPress We will certainly additionally speak about whether you must eliminate the base prefix completely.

How to change the category base prefix in WordPress

What is Category Base Prefix? Should You Change It?

Each category on your WordPress website obtain its very own web page and also RSS feed. You can watch all blog posts submitted under a category by going to that category archive web page.

By default, WordPress includes ‘category’ as base prefix to URLs for category web pages. This assists separate web pages and also blog posts from category and also tag archives.

For instance, if you have actually a category called ‘News’ after that its URL will certainly resemble this:

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

Similarly, WordPress additionally includes tag prefix to URLs for tag archives.

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

This SEO pleasant URL framework assists individuals and also internet search engine recognize what type of web page they are going to.

Most internet sites do not require to change the base prefix in all. However, if you are developing a particular niche website where you would certainly such as to utilize a various word or expression for your groups, after that you can change the category base prefix to mirror that.

Changing Category Base Prefix in WordPress

Changing category base prefix is fairly straightforwardin WordPress

You demand to browse through Settings” Permalinks web page and also scroll down to the ‘Optional’ area.

Changing category base prefix in permalink settings

Here you can go into the prefix you would certainly such as to utilize following to the category base choice. You can additionally change the tag base prefix if you desire.

Don’ t neglect to click the conserve adjustments switch to shop your setups.

Setting up Redirects After Changing Category Base Prefix

If you are altering category base prefix on a brand-new site, after that you do not require to do anything. However, if you are doing this on an existing site, after that individuals going to the old category web page will certainly see a 404 mistake.

To repair this, you will certainly require to configuration redirect to make certain both internet search engine and also routine site visitors are effectively rerouted to the proper category web page on your website.

First you will certainly require to set up and also turn on the Redirection plugin. For even more information, see our detailed overview on how to set up a WordPress plugin.

Upon activation, you require to browse through Tools” Redirection web page to configuration redirect.

Setting up redirect after changing category prefix

Scroll down to ‘Add new redirection’ area.

First, you require to include / category/(. *) in the resource URL area. After that you require to check the box following to the routine expression choice.

In the target URL area, you require to include your brand-new category base prefix similar to this / subjects/$ 1 Don’ t neglect to change subjects with your brand-new category prefix.

Click on the ‘Add Redirection’ switch to conserve your adjustments.

That’s all. Now all your individuals and also internet search engine will certainly be rerouted to the proper URLs utilizing your brand-new category prefix.

Removing The Category Base Prefix in WordPress

Many of our individuals have actually asked us regarding getting rid of the category base prefix from WordPress URLs completely. This will certainly change your category URLs to resemble this:

http://example.com/news/

This is not a great concept, and also we suggest that you do not eliminate category base prefix.

Category base prefix assists both individuals and also internet search engine compare posts/pages and also groups. Removing the prefix makes your URLs unclear which is bad for individual experience or SEO.

You might additionally encounter technological concerns with different WordPress plugins. For instance, if you have a category and also a web page with the exact same name or when you are utilizing %postname% as your URL framework for solitary blog posts, after that your website will certainly experience boundless redirect loophole triggering the web pages to never ever tons.

However, if you still desire to do this, after that you require to set up and also turn on FV Top Level Categories plugin. For even more information, see our detailed overview on how to set up a WordPress plugin.

The plugin functions out of the box and also will promptly eliminate the category base prefix from your category URLs.

We wish this write-up assisted you find out how to change the category base prefixin WordPress You might additionally desire to see our listing of many desired WordPress suggestions, techniques, and also hacks.

If you liked this write-up, after that please subscribe to our YouTube Channel for WordPress video clip tutorials. You can additionally locate us on Twitter and also Facebook.