remove category word from wordpress url

For professional sites we want to remove category word from wordpress url. here we have short code which can be added in to .htaccess file. that will remove category form url slug.

remove category word from wordpress url

If you want to remove the /category/ word from your URL you need to use the following code.

If you are not wordpress developer and you are not having knowledge of apache server then dont use this code.

first take backup of your .htaccess file which you can find in your root folder of wordpress installation.

Put following code in that file.

RewriteRule ^category/(.+)$ http://www.yourblog.com/$1 [R=301,L]

After putting this code your URL will will be changed as follows:

http://yourblog.com/category/wordpressapi
to
http://yourblog.com/wordpressapi

Other Helpful link:

Remove category slug wordpress from URL

remove category word from wordpress
remove category word from wordpress

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

One thought on “remove category word from wordpress url”

Leave a Reply

Your email address will not be published.