How To Remove Category Plug From Your Category URLs In WordPress

If you want remove Category Plug From Your Category URLs In WordPress here the easy way to this.

Remove Category Plug From Your Category URLs In WordPress With Yoast’s SEO Plugin

A quick way to remove category plug from your URLs iso use the Yoast SEO plugin.

Yoast SEO plugin integrated setting to remove the category base for you.

Go to you admin -> SEO -> Search AppearanceTaxonomies
Roll to bottom you will see the Category URLsRemove the categories prefix – Just select Remove and Save Change

How To Remove Category Plug From Your Category URLs In WordPress
How To Remove Category Plug From Your Category URLs In WordPress

Now it will working like a charm ^^

Have a Nice Day…

Another Way to Do This:

There a have another way to remove category plug in WordPress.

1) Using permalinks setting in WordPress. (Not Recommended)
Go to Permalinks Setting – set /%category%/%postname%/ and set the Category Base a dot like image below:

How To Remove Category Plug From Your Category URLs In WordPress
How To Remove Category Plug From Your Category URLs In WordPress

I not recommended this setting because you url link will mess around when you set 2 or more category.

The /%category%/%postname%/ link will go to the main category. it will cause some SEO problem when you delete category or change it.

%postname% only my be nice but the category link will go wrong. You can not access category link.

2) Using .htaccess

Using this for your htaccess file – RewriteRule ^category/(.+)$ http://www.yourwebsite.com/$1 [R=301,L]

It just not working (maybe for me, don’t know why) . you just dont need to try ^^

So after all – Remove Category Plug From Your Category URLs In WordPress with Yoast SEO is the best and easy.

Leave a Reply

Your email address will not be published. Required fields are marked *