Bedrock Multisite URL

Hi

I’ve got a problem with using the Bedrock project on a multisite install. Because the WordPress files are inside the /wp/ it will break when trying to navigate to the network sites dashboard pages.

For example the toolbar link to Network sites will point to DOMAIN/wp-admin/network/ when I need this to go to DOMAIN/wp/wp-admin/network/.

At the moment the fix I’m doing is with .htaccess to prefix this with /wp/

RewriteRule ^(wp-(content|admin|includes).*) wp/$1 [L]

Is there another way I should be doing this?

If not can anyone help with how I would convert this to an nginx rewrite rule?

Thanks
Paul

Check out the rules from our bedrock-ansible project: https://github.com/roots/bedrock-ansible/blob/1876f78b9be6b0fbcdaa2d4dd3ddb32e03a6503d/roles/nginx/templates/wordpress_multisite_subdirectories.conf.j2

1 Like

Thanks I’ll try it out.