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] RewriteRule question
Date Fri, 24 Sep 2004 19:53:46 GMT
On Fri, 24 Sep 2004 14:44:41 -0500, Aman Raheja <araheja@techquotes.com> wrote:

> RewriteRule   ^/a\?(.+) http://httpd.apache.org/$1 [R]

> According to the second line the pattern is only applied to /a and not
> /a?docs/misc/rewriteguide.html
> What's going on here ?

RewriteRules do not match against the query string.  You can do

RewriteCond %{QUERY_STRING} (.+)
RewriteRule ^/a http://httpd.apache.org/%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