wordpress - 404 page not found after updating permalinks w Nginx -


i changed permalinks structure use postname restarted nginx clear cache, if can display homepage, when hit oage link , 404 page not found ...

using nginx , don't have update .htaccess file , should update site nginx conf file ...

here location section used .php

      location ~ \.php$ {             try_files $uri =404;             fastcgi_pass 127.0.0.1:9000;             # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;             fastcgi_index index.php;             fastcgi_param script_filename $document_root$fastcgi_script_name;             include fastcgi_params; } 

thanks feedback

it's not complete file section! server { } missing.

use 1 use 1 between server { } , should work

location ~ \.php$ {         try_files $uri =404;         fastcgi_pass 127.0.0.1:9000;         # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;         fastcgi_index index.php;         fastcgi_param script_filename $document_root$fastcgi_script_name;         include fastcgi_params;  } if (!-e $request_filename) {     rewrite ^.*$ /index.php last;  } 

Comments