persistent Nginx - Wordpress Error 404 - Solved
Posted: Wed Jul 26, 2017 12:28 pm
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
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: https://www.digitalocean.com/community/ ... lemp-nginx
add this
server {
[...]
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
[...]
}
I hope this help
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; }
After Googling for a couple of hours i stumbled upon this solution: https://www.digitalocean.com/community/ ... lemp-nginx
add this
server {
[...]
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
[...]
}
I hope this help