My rewrite rules send any .html request to default.php which logs hits etc. then displays the html document. Everything works perfectly except the following request. http://www.foo.com/?query=test.
The querystring "?query=test" is not carried to default.php.
http://www.foo.com/index.html?query=test works fine and the querystring can be captured.
Rules are below - any help appreciated.
RewriteEngine On
RewriteCond /usr/local/apache/sites/foo.com%{REQUEST_FILENAME} !-f
RewriteRule (.*).html /default.php?p=$1.html [QSA]