diff --git a/templates/configmap.yaml b/templates/configmap.yaml index b81a35b..605005f 100644 --- a/templates/configmap.yaml +++ b/templates/configmap.yaml @@ -40,6 +40,13 @@ data: set_real_ip_from 192.168.0.0/16; real_ip_recursive on; + # WordPress Multisite対応 + 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; }