g1smd - 4:59 pm on May 20, 2012 (gmt 0)
RewriteRule . /index.php [L]
Wrong. It should say .* because if the user requests the sitename by itself, then the request will have no content.
Actually, no, the " . " is quite OK here. Requests for
example.com/ will be handled by the
DirectoryIndex index.php directive.
That's why the
RewriteCond $1 ^(index\.php)?$ code is also correct.
Of course, if you had used extensionless URLs the ruleset can be simplified to a single line of code.