We are moving our php website from Apache to Nginx.

One problem that we have not been able to fix is with passing functions in url via php or tpl files.

For eg. if a url is something like this


This would work fine in Apache but nginx would show a 404 page. If I remove the trailing slash "/" in the url, nginx would work fine.

for eg. www.example.com/cart/shopping_options.php?func=get_shop_menu&ajax=1

I'm talking about the "/" after .php

We've more than 200 files like this. What should be the course of action to solve this issue? I've searched a lot about this on google but didn't find anything helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.