Rewrite does not work

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

 



Hello

 

I have a problem with a rewrite. In my httpd.conf I use the following lines:

 

ScriptAlias /test/ /var/test/cgi-bin/

Alias /pipermail/ /var/test/archives/public/

<Directory /var/test/archives>

        Options +FollowSymlinks

</Directory>

 

RewriteEngine On

RewriteCond %{SERVER_PORT}       ^80$

RewriteRule ^(.+)$ https://server.domain.ch$1 [R]

 

RewriteCond %{REMOTE_HOST} \.domain\.ch$

RewriteRule ^/testtinfo/fea http://another.url.ch/

 

The first RewriteCond maps all request on port 80 to the port 443 an works fine. But the second RewriteCond has no effect Any idea?

 

Thanks’ for any help

 

Pedro

 


[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