Hi,
I am trying to redirect an entire directory to a single file. With Apache, I used this:
I tried setting a "Static" Context like this:
"file" is in the virtual host root directory, but it isn't working. I also tried adding "(.*)" and "(.*)$" to the URI, with no effect.
If I change the Context to this:
Then it works, but only for "/dir/", not "/dir/x".
Looking at the debug log with the first Context, I see these lines:
Does that give any clues?
Thanks.
I am trying to redirect an entire directory to a single file. With Apache, I used this:
Code:
AliasMatch ^/dir /path/to/file
Code:
URI = exp:^/dir
Location = $VH_ROOT/file
Accessible = Yes
If I change the Context to this:
Code:
URI = /dir/
Location = $VH_ROOT/file
Accessible = Yes
Looking at the debug log with the first Context, I see these lines:
Code:
File not found [/.../dir/x]
processContextPath() return 25
processNewReq() return 25.
HttpConnection::sendHttpError(),code=404 Not Found
Thanks.