Products and Products Categories will be always available on any E-commerce Website. If you are willing to remove Product Name or Products Category (means changing URL from website.com/category/blog to website.com/blog) from URL in Wordpress then you should go through this article to know the methods. There are 4 ways of Removing Product & Product-category from URL in Wordpress. All these methods remove category from URLs but it’s recommended that you should choose a method with less code.

There are four methods explaining in this article, lets check it :

1. To remove category you should set the permalinks to /%category%/%postname%/ and set the Category Base to dot (.). A Blank Category Base will display Wordpress Default Category thus you should set it to a dot (.). To perform these two things you should Log in to Wordpress Dashboard, then go to Settings, then go to Permalinks, then click Custom Structure (here add /%category%/%postname%/ just after the domain) and finally set Category Base to dot (.).

2. Removing Category With Yoast’s SEO Plugin : Log in to Wordpress Dashboard, then go to Yoast SEO, then Select Advanced, then Click Permalinks tab permalinks at the top. In the Permalinks Tab find "Strip the category base (usually /category/) from the category URL" and Tick the Check Box placed just ahead it.

3. Removing Category from URLs With .htaccess :
This method is used to remove category base manually. You should just add the line code "RewriteRule ^category/(.+)$ http://www.site.com/$1 [R=301,L]" in the .htaccess file to remove Category.

4. "Remove Category URL Plugin" to Remove Category Base : This Plugin is very popular and it is also used to remove category base. This Plugin removes the ‘/category/’ completely from permalinks (e.g. mywebsite.com/category/my-category/ to mywebsite.com/my-category/). This Plugin is very simple and there is no need of any kind of configuration. It is easily compatible and usable with Other Plugins, Sitemap Plugins, WPML, Multiple Sub-categories and WordPress Multisite. It offers better as well as logical Permalinks, there is no need of modifying Wordpress files while using this Plugin and it Redirects Old Category Permalinks to New Ones.
Author
bhawanisingh
Views
8,506
First release
Last update
Rating
0.00 star(s) 0 ratings
Top