When you open your website category page , the URL usually shows like
http://www.yourdomain.com/category/categoryname
Now the problem is that you want to remove /category/ from your URL !
Follow the below Steps to remove /category/ from WordPress URL
- From your wordpress Dashboard go to Settings >> Permalinks and select “Custom Structure” and enter: /%category%/%postname%/
- Next set your “Category Base” and enter: /.
Click on save and refresh your website you will able to see that /category/ is removed from your URL
404 page after remove /category/ from WordPress URL
Sometime after doing the above changes, categories pages show 404 error. If you see 404 error on categories and subcategories pages , here is the fix
- From your wordpress Dashboard go to Settings >> Permalinks and select “Custom Structure” and enter: /%category%/%postname%.html
- Next set your “Category Base” and enter:/.
Save your Permalinks and check your website . Its done