Page 1 of 1

persistent Nginx - Wordpress Error 404 - Solved

Posted: Wed Jul 26, 2017 12:28 pm
by Aldoseri
Hi Guys,

After migrating to a new server (Ubuntu 16.04) I restored my website and went through the setup process adding the usual Nginx command

Code: Select all

location / { try_files $uri $uri/ /index.php?$args; }
and restarted Nginx. This is what almost anyone installed wordpress know, but it didn't solve the issue.

After Googling for a couple of hours i stumbled upon this solution: ... lemp-nginx

add this

server {
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;


I hope this help