Remove category & tag base from WordPress url - without a plugin

cosmoonot picture cosmoonot · Jul 23, 2013 · Viewed 117.4k times · Source

I would like to remove the category & tag base from WordPress URL. I have come across other posts and solutions which used plugins. I would like to stay away from plugins and have a solution from within functions.php. This would prevent any future plugin updates or WordPress default files from being changed.

Any help would be appreciated. Thanks!

I have tried these solutions so far:

Answer

optimiertes picture optimiertes · Jan 3, 2014

If you want to remove /category/ from the url, follow these two steps:

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

Save it and you’ll see your URL changed to this format: http://yourblog.com/quotes/

(Source: http://premium.wpmudev.org/blog/daily-tip-quick-trick-to-remove-category-from-wordpress-url/)