Ah ha! Here is the whole Rewrite in question, minus the detailed # commentary:
RewriteCond $1 ^(index\.php)?$ [OR]
RewriteCond $1 \.(gif|jpg|ico|css|js)$ [NC,OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)$ - [S=1]
RewriteRule . /index.php [L]
Demonstrating once again how crucially important it is to leave a blank line after each Rule. The /index.php part is
an entirely separate rule, with no conditions.
The [S] flag should only be used by people who are absolutely sure what they are doing. That applies to jdMorgan, who created this forum. It does not apply to you and me ;) Details are
here [httpd.apache.org] (the Forums will eat the fragment; it's S|skip). Here it means "skip the next rule" -- but then
continue in mod_rewrite, looking at any following Rules.
The $1 in the Conditions refers to the capture, which happens to be the entire request, so it could just as well say %{REQUEST_URI}.
The whole package means "If the request meets any of the listed conditions, carry on as if nothing had happened. Otherwise, rewrite to the index.php file".
You can arrive at exactly the same result by turning the whole thing on its head:
RewriteCond %{REQUEST_URI} ^!(index\.php)?$
RewriteCond %{REQUEST_URI} !\.(gif|jpg|ico|css|js)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
That is: IF the request is for anything
other than #1 the index.php file (which may be expressed as "nothing")
#2 a supporting file such as image or css
#3 any file that actually exists
#4 any directory that actually exists
THEN rewrite to index.php.
All of which suggests to me that anyone who speaks fluent Apache could look at an htaccess or config file and instantly tell whether it was written by jdMorgan or g1smd :)