I have a server for which I want *all* requests to go to a perl script.
So I have set for this server:
RewriteEngine on
RewriteRule ^/ /whatever/my-script.pl
This works fine until I make a request like
http://host/xxx%00yyy
I get a 404 response code, and my script is executed, but the SCRIPT_URL value (normally the same as the request path in this case) is set to the path I specified in the Apache config as
ErrorDocument 404 /not_found
Is this a mis-configuration or abuse on my part, a bug or a feature?
This only seems to happen with a URL-encoded null in the path. Other encoded values are OK.