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

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>