From b4e45877a77687b2bf2e34a784e0e6690bbdb802 Mon Sep 17 00:00:00 2001 From: pieter Date: Sun, 30 Nov 2025 04:54:44 +0000 Subject: [PATCH] =?UTF-8?q?templates/configmap.yaml=20=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/configmap.yaml | 7 +++++++ 1 file changed, 7 insertions(+) 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; }