Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have an interesting situation in relation to some help desk software that we are trying to setup. This is a web based software application that allows customers and staff to log into it and access tickets and supply updates, etc. The challenge we are having deals with the two different domains that we use and the mod_rewrite rules to make it all work with our SSL certificate that is only bound to one of the domains. I will list the use case scenarios below and the challenges that we are having.

  • If you access then it redirects fine to
  • If you access then it redirects fine to
  • If you access then it throws an error of "server cannot be found"
  • If you access after having visited then you are presented with a "this connection is untrusted" error about the certificate only being valid for the domain2 domain instead of the domain1 domain name

I have tried just about every mod_rewrite rule that I can think of to help make this work and I have not been able to locate the correct combination. I was curious if anyone had some ideas on how to make the redirects work correctly. In the end, we are needing all customers and staff to land at regardless of the previous URL combinations that they enter, like listed above.

Thanks in advance for your help with this.

share|improve this question
Can we see your existing rewrite rules? – SmallClanger Jan 10 '11 at 17:50
up vote 1 down vote accepted

If you don't have a certificate for then no amount of rewrite magic is going to change the errors the users will see when they enter

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.