Hello,

our organization has two domains, say domain1.com and domain2.com. We run
a website, and want to have all HTTP traffic to go via
http://domain1.com/. So we need to redirect all incoming requests for any
other domain (for example, www.domain1.com, domain2.com, www.domain2.com,
...) to domain1.com. I tried this using a

   Service
     URL "!^http://domain1.com";
     Redirect 301 "http://domain1.com";
   End

But, apparently, this does not work. Perhaps one of you can help by
pointing me towards my mistake?

Oh, and a second question: We need to do the same for HTTPS, because our
SSL certificate is for the domain1.com domain. So the question is if the
redirect is applied *before* or *after* the traffic is encrypted (or,
rather, if the user going to domain2.com will be given a certificate
warning because the domain does not match, even though he will be
redirected to the correct domain).

Thanks for your insight!

Andreas.


--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to