Skip to content

Instantly share code, notes, and snippets.

@sftsk
Created August 31, 2017 09:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sftsk/c89647ea4a400e425e2c886e9cce8737 to your computer and use it in GitHub Desktop.
Save sftsk/c89647ea4a400e425e2c886e9cce8737 to your computer and use it in GitHub Desktop.
local by flywheel config for bedrock multisite
server {
server_name _;
return 302 $scheme://domain.dev$request_uri;
}
server {
server_name ~^(.*)\.domain\.dev$ domain.dev;
root /app/public/;
index index.php index.html index.htm;
# special config for Bedrock + Multisite
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) /wp$2 last;
rewrite ^(/[^/]+)?(/.*\.php) /wp$2 last;
}
include do-not-modify/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment