I’m having problems finding the right combination of rewrite rules to mimic this htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) wp/$1 [L]
RewriteRule ^(.*\.php)$ wp/$1 [L]
RewriteRule . index.php [L]
I’m using Bedrock, and am trying to get a subdomain multisite installation to work with it’s /web/wp file structure. The htaccess rules that work are above, but I can’t seem to translate those into rules that work for nginx. Any help would be appreciated.