I'm moving my site from Apache to Nginx but I'm stuck at a issue for which I'm not able to find a solution, neither here nor on Google.
On my home page, there are some items on menubar, clicking on which calls for .js scripts which in turn calls for some php files.
This works fine with Apache but not with Nginx. Nginx is taking the trailing slash
/and it turns it into a directory so if I see my Nginx error logs I see, the file being requested is:
2019/04/29 21:29:23 [error] 5033#5033: *1 "/var/www/html/cart/shopping_options.php/index.php" is not found (20: Not a directory), client: 127.0.0.1, server: _, request: "GET /cart/shopping_options.php/?func=get_shop_menu&ajax=1 HTTP/1.1", host: "localhost", referrer: "http://localhost/"
If something is not clear or if anyone needs more information, please comment. If anyone can help me with this, it would be great. There are bunch of .js files and this coding practice of putting a
/ after .php has been used in many places which I'm not even aware of, so it is not possible to fix by going directly to files where this link is being generated and fixing the code.