httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coughlin, Michael J" <>
Subject [users@httpd] RewriteRule problem
Date Fri, 08 Feb 2013 21:19:23 GMT
The request:

The rule:

RewriteRule ^(testing.*)$ test.php?req=$1 [NC,L]

test.php properly renders the querystring "req=testing123" (its only purpose to verify the


RewriteRule ^(t.*)$ test.php?req=$1 [NC,L]

gives me:  "req=test.php".

I don't get it.  Why is $1 backreferenced as "test.php"?  In fact, any string before (testi.*)
gives me test.php
, but anything after gives me the testing123.  Some strange lexical order thing going on?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message