I have the following route: Route::resource('users', 'ProfileController');
When I go to site.com/users/123
, it loads the page properly. I can also go to site.com/index.php/users/123
and get the same page (not sure if laravel is by default intended to do that).
If I change the url to site.com/does_not_exist/users/123
, laravel returns a 404, as you would expect. However, if I go to site.com/does_not_exist/index.php/users/123
, laravel loads the page. I can put any random path, non-existent path between site.com and index.php and it will work.
Why doesn't laravel return a 404 for this? How do I fix it so it does?