Nginx Website with PHP script giving 404 for all onpage links
I've got this website on nginx, it's a php script for an image site.
The problem is that whenever I click on a link on the homepage it gives me a 404.
I can access the homepage and it shows the last image (or a random image if I set it that way) and I can access and use the admin panel so the script or it's installation is not the problem.
I can even see the files/images I've uploaded on the admin panel.
I believe the problem is with my nginx.conf file but I can't find the problem.
I'm pretty sure it's some easy thing on the config file for the site and because Nginx doesn't read the .htaccess file.
Can you see what the problem is and fix it?
The problem is in the .htaccess file. Nginx doesn't read it so it doesn't know how to create the URLs properly and I can't find the error.
Please repply with "I can fix your Nginx" so I know you read everything.