httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Isaev <A.Is...@astelit.ru>
Subject Re[2]: Mod_rewrite question
Date Tue, 18 Dec 2001 14:14:00 GMT
Hello Owen,

Tuesday, Tuesday, December 18, 2001, you wrote:

OB> Alexander Isaev wrote:
>> 
>> 
>> OB> RewriteRule /* http://www.my-site.com [R,L,E=HTTP_REFERER:banana]
>> 
>> I just tried it. And .. It didn't work.

OB> Can't imagine why not. Try switching on rewrite logging and look for the
OB> line:

OB> "setting env variable <xxx> to <yyy>"

Here is the part of the log file.

195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(3) [per-dir /usr/home/wwwuser/www/ppee/] strip per-dir prefix: /usr/home/wwwuser/www/ppee/prev.php
-> prev.php
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(3) [per-dir /usr/home/wwwuser/www/ppee/] applying pattern '/*' to uri 'prev.php'
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(4) RewriteCond: input='http://www.google.com/search?q=movies&btnG=Google+Search' pattern='^http://([a-zA-Z0-9-]*)\.google\.([a-zA-Z0-9-]*)/'
=> matched
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(2) [per-dir /usr/home/wwwuser/www/ppee/] rewrite prev.php -> http://www.my-site.com/
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(5) setting env variable 'HTTP_REFERER' to 'banana'
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(2) [per-dir /usr/home/wwwuser/www/ppee/] explicitly forcing redirect with http://www.my-site.com/
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(1) [per-dir /usr/home/wwwuser/www/ppee/] escaping http://www.my-site.com/ for redirect
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(1) [per-dir /usr/home/wwwuser/www/ppee/] redirect to http://www.my-site.com/ [REDIRECT/302]
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(3) [per-dir /usr/home/wwwuser/www/ppee/] add path-info postfix: /usr/home/wwwuser/www/ppee
-> /usr/home/wwwuser/www/ppee/
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(3) [per-dir /usr/home/wwwuser/www/ppee/] strip per-dir prefix: /usr/home/wwwuser/www/ppee/
-> 
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(3) [per-dir /usr/home/wwwuser/www/ppee/] applying pattern '/*' to uri ''
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(4) RewriteCond: input='http://www.google.com/search?q=movies&btnG=Google+Search' pattern='^http://([a-zA-Z0-9-]*)\.google\.([a-zA-Z0-9-]*)/'
=> matched
195.96.64.172 - - [18/Dec/2001:17:11:01 +0300] [www.my-site.com/sid#82a7fb4][rid#82fe034/initial]
(2) [per-dir /usr/home/wwwuser/www/ppee/] rewrite  -> http://www.my-site.com/

OB> Rgds,

OB> owen Boyle.

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




Best regards,
 Alexander                            mailto:A.Isaev@astelit.ru


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message