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

[cobalt-users] Two domains One VSite



I am on a Raq3

I have registered two domains like domain.com and domain.it for the same
Virtual Site.

I would like to automatically redirect all the .it incoming traffic to the
..com. So I modified the httpd.conf this way

<VirtualHost 216.219.239.31>
ServerName www.domain.it
ServerAdmin admin
DocumentRoot /home/sites/site41/web
ServerAlias domain.it
ServerAlias www.domain.com
ServerAlias domain.com
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^216.219.239.31(:80)?$
RewriteCond %{HTTP_HOST}                !^www.domain.it(:80)?$
RewriteRule ^/(.*)                      http://www.domain.it/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site41/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType    text/html     .shtml
ScriptAlias /_vti_bin/_vti_adm/ /home/sites/site41/web/_vti_bin/_vti_adm/
ScriptAlias /_vti_bin/_vti_aut/ /home/sites/site41/web/_vti_bin/_vti_aut/
ScriptAlias /_vti_bin/ /home/sites/site41/web/_vti_bin/
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site41/users/$1/web/$3
</VirtualHost>

All works fine but the email. Is there a way through the GUI (or manually)
to redirect also info@xxxxxxxxxx to info@xxxxxxxxx?