mklasen of Radish Concepts
1/15/2020 - 9:09 AM

MAMP Pro NGINX Configuratie ( + multisite )

# Make sure to exclude Apache from GroupStart (Else Apache will use the hostname before NGINX can)
# Set the right ports for NGINX (80,443)
# Choose the right webserver (NGINX) for each host
# For Multisite config, see the settings below.
$uri $uri/ /index.php?q=$uri&$args;
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
# Remove need for /wp/
# This assumes your environment was setup with composer with WordPress in a subdirectory (/wp/)
rewrite ^(/[^/]+)?(/wp-.*) /wp$2 last;