/path/to/docroot/foo/bar/index.html
/path/to/docroot/foo/css
/path/to/docroot/foo/images
/path/to/docroot/frobozz/css
/path/to/docroot/frobozz/images
I thought I could solve the problem by putting this in the file /path/to/docroot/.htaccess:
RewriteEngine on
RewriteBase /
RewriteRule ^foo/?$ bar/html/index.html [L]
The problem is that the file at /path/to/docroot/foo/bar/index.html requires other local files with directives like:
<img src="">
...and these requests fail with error messages like "File does not exist: /path/to/docroot/images, referer:
http://myserver/frobozz/".
I tried to fix this by adding the following rule at the end of /path/to/docroot/.htaccess:
...but this causes a recursion error: "Request exceeded the limit of 10 internal redirects...".
Any advice would be greatly appreciated!
In particular, what's the best way to inspect the values of the various variables that are available for the TestString in RewriteCond, including the special ones like THE_REQUEST and IS_SUBREQ?
TIA!
Kynn