httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony VanScoy <tvans...@gmail.com>
Subject Re: [users@httpd] RewriteMap substitutions in RewriteRule
Date Fri, 12 Aug 2005 16:35:00 GMT
> > Use %1 for back-references to RewriteCond.  $1 is a back-reference to
> > the RewriteRule.
> 
> Additionally, backreferences aren't populated unless the string you want
> to capture is in parentheses.
> 
> --n
> 
> --
> Neil! Your bed's on fire

So I have to use ...

RewriteCond %{QUERY_STRING} =+"litId=\d+"

... instead of ...

RewriteCond %{QUERY_STRING} ^litId\=\d+$

... if I want to use the %1 reference? If so, is my syntax correct? I
tried that earlier and it didn't work until I switched over to regex.
Can I combine parentheses and regex?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message