How to solve 404 permalink errors on nginx server

I can't solve this issue. I tried everything I found over the web. I first tried configuring my nginx.conf following the example on codex with no success. https://codex.wordpress.org/Nginx

I found that many users encounter this issue but the most popular fix is this:

    location / {
             try_files $uri $uri/ /index.php?$args;
    }

I still get 404 for all pages. This only happens if I don't use the Plain setting in permalinks structure.

Any ideas on how can I fix this? Thank you!

Topic php permalinks nginx 404-error Wordpress

Category Web


After hours of debugging, I can't say exactly what the problem was, however disabling all the plugin solved the issue. It wasn't one particular plugin, I then re-enabled all of them and everything was fine. Thank you for your interest!

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.