How to remove category prefix on WordPress path – Learn WordPress from a to z

Tutorials 0 lượt xem
How to remove category prefix on WordPress path - Learn Wordpress from a to z thumbnail

When you visit a WordPress directory, the directory’s path will contain a prefix. The default is  category . For example: hocwordpress.vn/category/cach-tao-plugin-wordpress

In terms of aesthetics as well as SEO factors, this prefix will make your directory path not user-friendly. It makes your path unsightly, long, and hard to remember. So in this article, I will guide you to remove the category prefix on the WordPress URL.

Using Yoast SEO plugin

For the first way, I will guide you with the Yoast SEO plugin . This is a very popular plugin that any SEOer knows.

After you have finished installing Yoast SEO, go to its settings menu. Specifically SEODisplay in search . Here, you go to the bottom of the settings page, at the Directory path section, select Remove .

Using Yoast SEO plugin

Use Rank Math SEO plugin

Rank Math SEO although born later than Yoast SEO. But has grown very strongly and achieved more than 1 million uses. If your website is using Rank Math SEO, then I will show you how to remove the category prefix without having to download Yoast SEO.

After the installation is complete, access the menu  Rank Math ➔ General Settings . At the Strip Category Base option , change it to ON to remove the category prefix  .

Use Rank Math SEO plugin

Epilogue

Yoast SEO or Rank Math SEO are indispensable plugins on your website. So in this article, I just show you how to remove the category prefix with the two plugins above. There is still a way to use more code and paste it into the theme’s functions.php file, but I find it redundant and unnecessary.

If you find this article useful and save you time, please help me share and rate 5 stars. Don’t forget other useful articles in the WordPress category and follow  Fanpage so you don’t miss new posts from me.

Bài viết liên quan