Can anyone tell me why the first ruleset here does not work but the second one does?
Code: Select all
##
# THIS RULESET FAILS
##
# If the requested filename is not an existing file
RewriteCond %{REQUEST_FILENAME} !-f [OR]
# If the requested is not an existing directory
RewriteCond %{REQUEST_FILENAME} !-d
# Pump the entire request through the bootstrap file
RewriteRule ^(.*)$ index.php [QSA,L]Code: Select all
##
# THIS RULESET WORKS
##
# If the requested filename is an existing file
RewriteCond %{REQUEST_FILENAME} -f [OR]
# If the requested filename is a directory
RewriteCond %{REQUEST_FILENAME} -d
# Use the request as is and skip the following 1 rewrite rules
RewriteRule ^.*$ - [S=1]
# Pump the entire request through the bootstrap file
RewriteRule ^(.*)$ index.php [QSA,L]Wouldn't you think the first ruleset should work?
PS I do have the rewrite engine on, in case that comes up.