Website: Requested filename being rewritten
Posted
by
horatio
on Server Fault
See other posts from Server Fault
or by horatio
Published on 2012-08-28T17:48:49Z
Indexed on
2012/08/28
21:42 UTC
Read the original article
Hit count: 292
I have been unable to find an answer via search.
I have a website (I do not administer the servers) where the server will serve a different file than the one requested. I first noticed this when using a filename of the following form:
_foo.php
(single underscore)
If I request foo.php
(does not exist), the server returns _foo.php
. By "returns" I mean that the server decides I meant _foo.php
, processes the php file, and serves the output.
If I request afoo.php
, zfoo.php
, or even __foo.php
(two underscores) (these files do not exist) the server returns _foo.php
.
If I request aafoo.php
, the server returns 404.
To sum up: the server seems to be doing a partial filename match.
My question is: what is happening and is this accepted behavior for a web server (or standard behavior of a common mod/package/etc)?
© Server Fault or respective owner