lighttpd/gpeasy: proper rewrite for query params
authorTomas Zeman <tzeman@volny.cz>
Tue, 07 Jun 2011 10:29:09 +0200
changeset 11 da454bf1bf63
parent 10 53c01c16b1cb
child 12 999aca5857e1
lighttpd/gpeasy: proper rewrite for query params
lighttpd/gpeasy
--- a/lighttpd/gpeasy	Mon May 30 16:21:31 2011 +0200
+++ b/lighttpd/gpeasy	Tue Jun 07 10:29:09 2011 +0200
@@ -1,7 +1,8 @@
 Rewrite rules for gpeasy:
 
 url.rewrite-if-not-file = (
-  "^(.+)$" => "/index.php?$1"
+  "^/([^.?]*)\?(.*)$" => "/index.php?$1&$2",
+  "^/([^.?]*)$" => "/index.php?$1",
 )
 
 Based on following article: configuring w/ nginx: