0

I am new to wordpress so i am facing a problem in removing /category/ from wordpress URL

http://domain/category/category-name 

So i would like to know how to remove /category/ from the url. I have tried various solutions like

Go to Settings >> Permalinks and select Custom and enter: /%category%/%postname%/
Next set your Category Base to /

But even after doing this i am not able to remove the /category/ from the URL.

Any help would be appreciated

Thanks

Dev
  • 612
  • 2
  • 13
  • 33

2 Answers2

0

Backup your .htacces file and try add this one. Please note the code is not tested.

RewriteRule ^category/(.+)$ http://www.yourblog.com/$1 [R=301,L]
Dhanuka Nuwan
  • 690
  • 8
  • 14
0

Go to your wordpress menu to settings. Go to permalinks and select Custom structure to choose what you need to do. If you .htaccess is rewriteable it will do it automatically and you can test around. If it isn't

Maciej Musialek
  • 56
  • 1
  • 14