Created
August 31, 2017 09:36
-
-
Save sftsk/c89647ea4a400e425e2c886e9cce8737 to your computer and use it in GitHub Desktop.
local by flywheel config for bedrock multisite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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