httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob <>
Subject Re: [users@httpd] Rewrite does not work
Date Tue, 09 Jan 2007 09:51:38 GMT
Huesser Peter wrote:
> My interpretation of "RewriteCond
> %{REMOTE_HOST} \.domain\.ch$" is the following: If the client that makes
> the https request is within the "" than apply the following
> RewriteRule.

Yes, this will cause a reverse DNS lookup of remote_addr. But anyway, I 
think your order is incorrect. If your request comes through port 80, 
the 2nd rule won't have any effect, because your first rule matched already.

RewriteEngine On
RewriteCond %{REMOTE_HOST} \.domain\.ch$
RewriteRule ^/testtinfo/fea [R,L]
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.+)$$1 [R,L]


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message