This applies to WordPress multisite networks. I don’t really recommend doing this. If you do this on the main site of your network, you must make sure that none of your posts, categories, or tags have a slug equal to the slug of a subsite. That would cause a conflict.
But there are times when we have to do what we have to do. If you want to remove the ‘blog’ slug from your permalinks on a network site, do the following.
1. For the site in question, set permalinks to the default setting, like so:
- Go to Settings -> Permalinks -> Common Settings
- Choose ‘Default’
- Save
2. Then go the Network Admin -> Sites and set the permalink structure for the site in question, like so:
- Go to the Network Admin -> Sites ->
- On your main site (the root site), click ‘Edit’
- Go to Settings tab
- Scroll down to Permalink Structure
- Enter your desired permalink structure there. For example: “/%category%/%post_id%” without the quotes.
Thomas
April 4th, 2013 at 4:47 pm
Old trick but always works, many thanks, it’s the most simple solution of this little problem.
Thomas
CareerVendor
June 7th, 2013 at 5:14 am
This trick works fine for posts and home page permalink.
But now I am getting 404 error on category archive. While troubleshooting when I put /blog slug in between category archive, it works fine.
I want to show permalink as sitename/category-name instead of sitename/blog/category-name
What to do now?
Sarvan Kumar
June 14th, 2018 at 1:10 am
Thank you very much i am in trouble and you solve my problem.