Software Developer

Remove blog Slug From WordPress Multisite Permalinks

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:

  1. Go to Settings -> Permalinks -> Common Settings
  2. Choose ‘Default’
  3. Save

2. Then go the Network Admin -> Sites and set the permalink structure for the site in question, like so:

  1. Go to the Network Admin -> Sites ->
  2. On your main site (the root site), click ‘Edit’
  3. Go to Settings tab
  4. Scroll down to Permalink Structure
  5. Enter your desired permalink structure there.  For example:   “/%category%/%post_id%” without the quotes.

By

We've 3 Responses

  1. 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?

    avatar

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]