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

Re: [cobalt-users] Two domains One VSite



> 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@xxxxxxxxx to info@xxxxxxxxxx?

If you're on a RaQ4 (you didn't specify what you're on) it would probably be
easier to do it from the GUI - set up the site for www.domain.it (for
example) and then add "domain.it", www.domain.com and "domain.com" to the
Web and Email Server Aliases section.

Dave