Nginx wordpress 404 error but homepage works
Modify the site configuration file and add: try_files $uri $uri/ /index.php?q=$uri&$args;
Modify the site configuration file and add: try_files $uri $uri/ /index.php?q=$uri&$args;
Check virtualhost configuration file. Use the below nginx recommended configuration as base https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/