httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From malone <>
Subject [users@httpd] AliasMatch Problem - %2f in URL causes 404
Date Wed, 16 May 2007 12:17:04 GMT
I have an AliasMatch line as follows

AliasMatch ^/(.*) "/var/www/localhost/htdocs/test.php"

My aim is to make any URL be handled by the PHP script. This works great
for all URLs, unless they have %2f in them, e.g.

Instead of running the PHP script apache returns a 404 error. %2f
decodes to the "/" character, so I assume that is causing problems
somewhere. I also notice on my windows machine that %5c ("\") causes the
same problem.

Why doesn't my AliasMatch line work for those URLs? Surely any URL
should be aliased to the PHP script, and it shouldn't be possible to get
a 404 message unless the script generates one.

I'm running apache-2.0.58 on i686 Linux.

Any help would be appreciated, thanks

Toby Walsh

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message