Hi all
I have a site called
http://test-server.com
my first page is inde.php
if someone give
http://test-server.com/index.php/3434453545
Then apache handles that and it gives a 304 code.
I would like apache gives a 404 not found error
Is that possible?
Check $SERVER['REQUEST_URI'] and see if it contains "index.php/" (or $SERVER['SCRIPT_NAME'] . '/' if you wanted it to be dynamic). If so, use [man]header/man to output a 404 header and whatever error page you would like.