[sclug] Apache rewrite

Keith Edmunds kae at midnighthax.com
Sun Oct 26 16:36:06 UTC 2008


On Sun, 26 Oct 2008 15:50:32 +0000, sapan.ganguly at gmail.com said:

> But in the rewrite log all I see it trying to match is "index.php"

You can't match on the query string like that. From
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritebase

"The Pattern will not be matched against the query string. Instead, you
must use a RewriteCond with the %{QUERY_STRING} variable."

hth,
Keith


-- 
Keith Edmunds

+-------------------------------------------------------------------------+
|    Tiger Computing Ltd    |  Helping businesses make the most of Linux  |
|  "The Linux Specialists"  |       http://www.tiger-computing.co.uk      |
+-------------------------------------------------------------------------+



More information about the Sclug mailing list