diff --git a/.docker/config/nginx.conf b/.docker/config/nginx.conf index f0d5927b3f..40858195b7 100644 --- a/.docker/config/nginx.conf +++ b/.docker/config/nginx.conf @@ -36,6 +36,12 @@ server { access_log off; } + if (!-e $request_filename) { + rewrite /wp-admin$ $scheme://$host$request_uri/ permanent; + rewrite ^(/[^/]+)?(/wp-.*) $2 last; + rewrite ^(/[^/]+)?(/.*\.php) $2 last; + } + location / { try_files $uri $uri/ /index.php?$args; }