WordPress Permalinks 404 Issue Solution

The issue: Cannot change Permalink structure to any one except Plain. Otherwise, the post will return 404. Update any post will fail with message: “Updating Failed. The Response is Not a Valid JSON Response” The initial nginx config: server { server_name example.com; ... root /var/www/wordpress; index index.php index.html; location / { try_files $uri $uri/ $uri.html =404; } ... } Finally I found that the root cause is that nginx cannot redirect subpath to wordpress. ...

Posted on 2023-12-05 ·  In WordPress ·  1 min read  · <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>