httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Nerad <jne...@cimedia.com>
Subject Re: RewriteCond
Date Fri, 31 May 2002 14:39:05 GMT
On Friday 31 May 2002 09:39, you wrote:
> Hi
>
> Anyone know how to do this :
>
> www.saudiabm.COM   --(to)-->  www.saudiabm.NET
>
> saudiabm.COM   --(to)-->  saudiabm.NET
>
> bbs.saudiabm.COM   --(to)-->  Nothing (just desplay index.html)
>
> ads.saudiabm.COM   --(to)-->  Nothing (just desplay index.html)
>
> bbs.saudiabm.NET   --(to)-->  bbs.saudiabm.COM
>
> ads.saudiabm.NET   --(to)-->  ads.saudiabm.COM
>
>
> I tried as a start :
> RewriteEngine on
> RewriteCond   %{HTTP_HOST}  ^[www\.]saudiabm\.com$
> RewriteRule   ^(.*)$         http://www.saudiabm.net/$1 [R,L]
>
> But it doesn't work !!
>

Check out the ServerAlias directive and the virtual hosting 
documentation.

http://httpd.apache.org/docs/mod/core.html#serveralias

http://httpd.apache.org/docs/vhosts/examples.html#name

(setup 3)

--
Jack Nerad


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


Mime
View raw message