Re: Rewrite does not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bob wrote:

>> following entries in httpd.conf:
>>
>>   RewriteEngine On
>>   RewriteCond %{REMOTE_HOST} \.domain\.ch$
>>   RewriteRule ^/testtinfo/fea http://another.url.ch/
>>
>> The produced entries in rewrite.log are:
>>
>> 129.129.194.181 - - [11/Jan/2007:09:40:24 +0100]
>> [server.psi.ch/sid#80c1cc8][rid#8140eb8/initial] (2) init rewrite engine
>> with requested uri /testtinfo/fea
>> 129.129.194.181 - - [11/Jan/2007:09:40:24 +0100]
>> [server.psi.ch/sid#80c1cc8][rid#8140eb8/initial] (3) applying pattern
>> '^/testtinfo/fea' to uri '/testtinfo/fea'
>
>
> This regEx should match /testtinfo/fea... Are other rules (if you call
> /foo and have ^/foo as regEx) wirking fine?
>
No. I created a different rule

  RewriteEngine On
  RewriteCond %{REMOTE_HOST} \.psi\.ch$
  RewriteRule ^/usage http://another.url.ch/

and get the following in rewrite.log

129.129.194.181 - - [11/Jan/2007:11:18:59 +0100]
[server.psi.ch/sid#80c1cc8][rid#8140eb8/initial] (2) init rewrite engine
with requested uri /usage/
129.129.194.181 - - [11/Jan/2007:11:18:59 +0100]
[server.psi.ch/sid#80c1cc8][rid#8140eb8/initial] (3) applying pattern
'^/usage' to uri '/usage/'
129.129.194.181 - - [11/Jan/2007:11:18:59 +0100]
[server.psi.ch/sid#80c1cc8][rid#8140eb8/initial] (1) pass through /usage/
129.129.194.181 - - [11/Jan/2007:11:18:59 +0100]
[server.psi.ch/sid#80c1cc8][rid#808be78/subreq] (2) init rewrite engine
with requested uri /usage/index.html
129.129.194.181 - - [11/Jan/2007:11:18:59 +0100]
[server.psi.ch/sid#80c1cc8][rid#808be78/subreq] (3) applying pattern
'^/usage' to uri'/usage/index.html'
129.129.194.181 - - [11/Jan/2007:11:18:59 +0100]
[server.wpsi.ch/sid#80c1cc8][rid#808be78/subreq] (1) pass through
/usage/index.html
129.129.194.181 - - [11/Jan/2007:11:18:59 +0100]
[server.psi.ch/sid#80c1cc8][rid#80c4bf8/initial/redir#1] (2) init
rewrite engine withrequested uri /usage/index.html
129.129.194.181 - - [11/Jan/2007:11:18:59 +0100]
[server.psi.ch/sid#80c1cc8][rid#80c4bf8/initial/redir#1] (3) applying
pattern '^/usage' to uri '/usage/index.html'
129.129.194.181 - - [11/Jan/2007:11:18:59 +0100]
[server.psi.ch/sid#80c1cc8][rid#80c4bf8/initial/redir#1] (1) pass
through /usage/index.html


????

Pedro



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux