I have a wp installed with multisite enabled and working with subdirectories. I noticed that in the main blog (the one that exists by default on the root), the posts links had a “/blog” in the url before the permalink.

So logged as the network admin I went to “All Sites > Edit” and I removed “/blog” from the permalink setting. But now when I visit a post at for example mydomain.com/post-name, I get a 301 redirect to the same url (/post-name), so the redirection is infinite.

Why am I doing wrong?

2 Answers
2

Why am I doing wrong?

You’re breaking WordPress. On a subdirectory installation, the /blog permalink is there on purpose and for a very specific reason – to make your main site continue to work while still allowing you a network dashboard.

When you install a subdirectory site, WordPress automatically uses /blog for the main site to prevent collisions. There are ways to not use /blog, though.

  1. Use a subdomain installation instead (possibly not an option)
  2. There are plugins that claim to allow you to remove /blog

Really, it’s there to keep other things from breaking … so by going in and manually removing it, you’re taking things into your own hands and breaking something else.

Leave a Reply

Your email address will not be published. Required fields are marked *