Many URLs return 404 on a WordPress or Laravel Website when using NGINX

If you have a vanilla NGINX setup, and all pages except the home page of your website is returning a 404, it might be that you don’t have the proper redirect in your NGINX configuration file.

Check the NGINX configuration file for the existence of the following clause:

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


Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top