Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rewrite Rule Help / QSA

Status
Not open for further replies.

cs2112

IS-IT--Management
Dec 11, 2002
1
US
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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top