For Laravel project I want urls starting with index.php to return 404.
Currently i have a laravel project. i want to ignore index.php in the url.
For example: If url domain.com/index.php -> 404 If url domain.com/index.php/page -> 404
Because there is no route defined for index.php. Right now, when user enter domain.com/index.php or domain.com/index.php/page user see the pages. (When index.php is written to the url, I want it to search as if it were a route.)
I want to see 404 page for /index.php and /index.php/* routes. I use nginx and I am looking solution for nginx.