httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] RewriteMap substitutions in RewriteRule
Date Fri, 12 Aug 2005 16:47:45 GMT
On 8/12/05, Tony VanScoy <tvanscoy@gmail.com> wrote:

> > Additionally, backreferences aren't populated unless the string you want
> > to capture is in parentheses.

> So I have to use ...
> 
> RewriteCond %{QUERY_STRING} =+"litId=\d+"
> 
> ... instead of ...
> 
> RewriteCond %{QUERY_STRING} ^litId\=\d+$

No.  You need to use something like ^litld=(\d+)$

You need parentheses () around the thing you want captured in the %1.

Joshua.

---------------------------------------------------------------------
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