Never mind, i fixed it on my own. location /ats-plug-helper.php { rewrite ^/ats-plug-helper.php/?$ /includes/ats.php last ; } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,75803,75819#msg-75819