httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Birkholz <>
Subject [users@httpd] mod_rewrite: get current working directory
Date Tue, 25 Nov 2008 13:51:47 GMT
Hello together,

I want to create a rule, that maps /images/xyz.png to
/foo/images/xyz.png (if that file exists), otherwise to /bar/images/xyz.png.

My problem is that i cannot get the current working directory to test if
file /foo/... exists because mod_rewrite wants absolute pathnames only,
relative pathnames do not work in that case.

Has anybody an idea?


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