If you’ve ever converted a single installation of WordPress into a WordPress Multi Site ( WPMS ) network using subdirectories, you’ll have noticed that the prefix for blog permalinks for the primary site changes from
If you are concerned that this new permalink structure will cause problems in the future then you may choose to remove the
It is possible to remove this prefix
- Login as a Super Admin
- Go to Network Admin -> Sites
- Choose the Main site and click on Edit.
- Choose the Settings tab
- Find the Permalink Structure text field.
- Remove the
- Scroll to the bottom and Save Changes.
Why would you want to do this?
- So that permalinks for blog posts remain unchanged.
- Because you think it would be better for SEO.
- To prevent broken links.
Some people say that making this change is not recommended. The reason for adding the
blog/ prefix is to prevent conflicts with URLs in other sites in the network.
If you do this on the main site of your network, you must make sure that none of your posts, categories, tags, or custom post types and taxonomies have a slug equal to the slug of a subsite.
I did this on a local install, creating a subsite called 2020. Then I forgot about it, updated to WordPress 5.5-beta3 and thought the hack had stopped working. I’m going to have to fiddle with the new sub-site’s name now.