diff --git a/templates/configmap.yaml b/templates/configmap.yaml index 28c581a..2c4ddb9 100644 --- a/templates/configmap.yaml +++ b/templates/configmap.yaml @@ -51,9 +51,15 @@ data: try_files $uri $uri/ /index.php?$args; } + # WordPress管理画面 location ~ ^/(wp-admin|wp-login\.php) { try_files $uri $uri/ /index.php?$args; } + + # パーマリンク対応(投稿・固定ページ) + location ~ ^/(.+)$ { + try_files $uri $uri/ /index.php?$args; + } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$;