Remove category & tag base from WordPress url - without a plugin
If you want to remove /category/
from the url, follow these two steps:
- Go to Settings >> Permalinks and select Custom and enter:
/%category%/%postname%/
- 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/)
If you use Yoast SEO
plugin just go to:
Search Appearance > Taxonomies > Category URLs.
And select remove
from Strip the category base (usually /category/) from the category URL
.
Regarding the tag removal I did not found any solution yet.
- Set Custom Structure: /%postname%/
Set Category base: . (dot not /)
Save. 100% work correctly.