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] mod_rewrite matching on querystring?
Date Wed, 30 Jun 2004 13:42:18 GMT
On Wed, 30 Jun 2004 15:25:01 +0200, Søren Neigaard
<s.neigaard@mobilethink.dk> wrote:
> Ive tried to get mod_rewrite to match this url (the complete url, and only the complete
url):
> 
>   /my/own/server?U1=44
> 
> Ive tried with this rule:
> 
>   RewriteRule ^/my/own/server.+U1=44[^\0-9] http://xxx/inde.htm? [P,L]

RewriteRule won't match on the query string, but you can use RewriteCond:

RewriteCond %{QUERY_STRING} U1=44[^\0-9]
RewriteRule ^/my/own/server http://xxx/inde.htm? [P,L]

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