httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aman Raheja <arah...@techquotes.com>
Subject [users@httpd] RewriteRule question
Date Fri, 24 Sep 2004 19:44:41 GMT
I have the following

-----------<snip>-------------
RewriteEngine on
RewriteLog    logs\rewrite.log
RewriteLogLevel    9
RewriteRule   ^/a/(.+) http://httpd.apache.org/$1 [R]
---------</snip>----------------

So when I access
http://localhost/a/docs/misc/rewriteguide.html
it goes to
http://httpd.apache.org/docs/misc/rewriteguide.html

Now if I do the following

-----------<snip>-------------
RewriteEngine on
RewriteLog    logs\rewrite.log
RewriteLogLevel    9
RewriteRule   ^/a\?(.+) http://httpd.apache.org/$1 [R]
---------</snip>----------------

So when I access
http://localhost/a?docs/misc/rewriteguide.html
it gives me Error 404

Here's the rewrite.log
127.0.0.1 - - [24/Sep/2004:14:21:03 -0500] 
[test.techquotes.com/sid#5b6148][rid#66bce0/initial] (2) init rewrite 
engine with requested uri /a
127.0.0.1 - - [24/Sep/2004:14:21:03 -0500] 
[test.techquotes.com/sid#5b6148][rid#66bce0/initial] (3) applying 
pattern '^/a\?(.+)' to uri '/a'
127.0.0.1 - - [24/Sep/2004:14:21:03 -0500] 
[test.techquotes.com/sid#5b6148][rid#66bce0/initial] (1) pass through /a

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

Appreciate info.
Thanks
Aman

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