How to remove category from WordPress URL

when displaying Category URL in wordpress the wordpress adds the word ‘category’ in between the category and the site link eg : , has the word category is useless we can remove category word by simple trick.

Normally WordPress category links are displayed this way :

The word category is useless in the link and acquires a space , we can remove that using a small change in .htaccess file. just add the below code in the .htaccess file :

RewriteRule ^category/(.+)$$1 [R=301,L]

if you want to remove the word tag you can remove it by adding the below line of code to .htaccess :

RewriteRule ^tag/(.+)$$1 [R=301,L]

Now Just save it.

Now your Permalinks will be changed, we have remove Category word and Tag word from the permalink

Subscribe to WPDEN