I have just discovered in my access log some people accessing urls like this: domain.com/index.php/index.php/ or even domain.com/index.php/index.php/index.php I have opened those links in browser and they worked. Why? My .htaccess is empty and i have no 'index.php' folder. But I do have 'index.php' file. I think this is happening to most php sites, not just mine. This is a random example: http://phptester.net/index.php/ http://phptester.net/index.php/index.php/index.php My question is how to force apache to return 404 error when such url is accessed?
Check your apache configuration virtual hosts. Also, if you don't mind, please post your config on here so we know what we are working with.