httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: if Statement
Date Sun, 26 May 2002 00:37:26 GMT

On Sun, 26 May 2002, hotmaster @ saudiabm wrote:

> Hi
>
> Is there any way to use "if" in .htaccess
> I want to use :
>
> If(hostname == 'webserver1.com') {
> RewriteEngine on
> RewriteRule   ^(.*)$  http://www. 'webserver1.net/$1  [R,L]
> }

RewriteEngine On
RewriteCond %{HTTP_HOST} webserver1.com [NC]
RewriteRule   ^(.*)$  http://www.webserver1.net/$1  [R,L]

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message