[BlueOnyx:02511] Re: Web Server Aliases

Ken Marcus - Precision Web Hosting, Inc kenlists at precisionweb.net
Tue Sep 29 10:04:55 -05 2009


----- Original Message ----- 
From: "Mels van Kooten" <mels at stijlloos.nl>
To: <blueonyx at blueonyx.it>
Sent: Tuesday, September 29, 2009 1:59 AM
Subject: [BlueOnyx:02506] Web Server Aliases


>I want multiple domain names attached to 1 virtual site.
> This can be done by entering an extra name in het "Web Server Aliases"
> (site management/Services/Web).
>
> The problem is, you get redirected to the original site name and I don;t
> want that. Because I filter some content on domain with htaccess. This is
> not possible if you get redirected immediately.
>
> Exaple:
> - Virtual site: www.x.com
> - Web Server Alias: www.y.com
>
> When I go to www.y.com I'm now beeing redirected to www.x.com.
> But I want to stay ad www.y.com.


Mels

Just edit the, for example,
/etc/httpd/conf/vhosts/site2

 and comment out the lines
RewriteCond %{HTTP_HOST}                !^12.45.789.10(:80)?$
RewriteCond %{HTTP_HOST}                ^somesite.com(:80)?$ [NC]
RewriteRule ^/(.*)                      http://www.somesite.com/$1 [L,R=301]

----
Ken Marcus
Ecommerce Web Hosting by
Precision Web Hosting, Inc.
http://www.precisionweb.net






More information about the Blueonyx mailing list