Custom Permalinks for WordPress Category and Tag Pages
By default, WordPress includes the words category and tag as the basis for the URLs of important pages. For example:
- mysite.com/category/something – for a category page.
- mysite.com/tag/something – for a tag page.
In this tutorial, I’m going to show you how to replace the words “category” and “tag” in your URLs.
Step #1. Set custom category and tag base
- Go to Settings > Permalinks > Optional.
- Type custom Category base and Tag base. No empty spaces.
- Click “Save changes”.
Step #2. End result
Go to your public site, check the new structure in the urls.
Category page:
Tag page:
To reset to default base, repeat step 1 by leaving the category and tag base empty.
How can I add an extension to the category URLs? Like /category/name.html