For beginners: trying to comprehensively describe my problem and talk about my questions, I produced a huge amount of text. If you do not want to read all this, my observations (read the "proof") [L]flag does not work misconception, from which all this happened, is in Additional observations . Why I misunderstood the obvious behavior is described in my answer, as well as a solution to this problem.
Customization
I have the following code in my .htaccess file:
Options -Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^robots.txt$ robots.txt [NC,L]
RewriteRule ^core/(\?.+)?$ core/handleCoreRequest.php$1 [NC,L]
RewriteRule ^$ web/index.html [L]
RewriteRule ^(images/.+\.(ico|png|bmp|jpg|gif))$ web/$1 [NC,L]
RewriteRule ^(css/.+\.css)$ web/$1 [NC,L]
RewriteRule ^(js/.+\.js)$ web/$1 [NC,L]
RewriteRule ^(lib/js/.+\.js)$ web/$1 [NC,L]
RewriteRule ^(lib/css/.+\.css)$ web/$1 [NC,L]
RewriteRule ^(lib/(.+/)?images/.+\.(ico|png|bmp|jpg|gif))$ web/$1 [NC,L]
- ( .htaccess) foo DOCUMENT_ROOT ( http://localhost/foo/). PHP, foo/core GUI JavaScript, foo/web. , script, GUI "" ( ).
, , . , ..
, , , ( , , ), (Firefox - " isn ' t " ), http://localhost/foo/ , .
, , - :
RewriteRule ^$ web/index.html [L],
, [L]. , -, . , , , , [L]. - ?
, , , :
RewriteEngine on
RewriteRule ^core/(\?.+)?$ core/handleCoreRequest.php$1 [NC,L]
RewriteRule ^(.*)$ web/$1 [L]
RewriteRule ^.*$ /foo/ [L]
. , - . , ?
, - , . , , .
, bbadour ( , , , , ), , . :
RewriteRule ^(.*)$ /foo/?uri=$1 [R,L]
RewriteRule ^(.*)$ /foo/?uri=%{REQUEST_URI} [R,L]
Firebug Net, , [L] , , RewriteRule ^$ web/index.html [L] ( ). [...]uri=web/index.html, [...]uri=/foo/web/index.html. , ( ^ $ web/index.html), . , ?