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. The querystring "?query=test" is not carried to default.php. I guess the DirectoryIndex directive is taking over. The access log shows a request for index.html but no query string.
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]
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]