404 not found permalink error (wordpress with nginx)
Problem
I cannot see my posts. It shows ‘404 not found’.
Solution
Add try_files $uri $uri/ /index.php;
to the location /
block in the nginx configuration file.
Refer to the following example.
========================== /etc/nginx/conf.d/default.conf =======
...
location / {
root /usr/share/nginx/html/yulistic;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php;
}
...
===========================================================