InMotion Hosting Support Center

https redirection from domainA to domainB

Category: Website

n/a Points
2014-12-17 5:35 am EST

Hits: 546

I would like to redirect to , http redirection works fine, experiencing problem https redirection. redirecting with error message uses an invalid security certificate
The certificate valid only for following names.. ,
(Error code: ssl_error_bad_cert_domain)

Please suggest me how to resolve this.


You must login before you can ask a follow up question.

You must login before you can submit an answer.



42,973 Points
2014-12-17 9:49 am EST
Hello ItsR,

Sorry for the problem with the re-direct. This is not immediately apparent, but it has to do with the nature of an SSL certificate. When you purchase the certificate, it is specifically for a particular domain name. If you are re-directing from a to a, then there will need to be a SEPARATE SSL certificate that covers the domain. The error is telling you that the certificate you're trying to apply is only valid for the ".net" domain that you purchased it for.

The other problem that you may have (since we're not sure what kind of account you have), is that shared server accounts (business level accounts) have a 1 SSL per account limit. Therefore, if you're trying to apply the redirect rule and both domains are on the same shared account, then it won't work if you're trying to keep BOTH URLs using HTTPS. The only resolution at this point would be to purchase a second shared server account and then apply the certificate there, or to upgrade to a reseller/VPS/dedicated. These account types allow you to have multiple IP addresses and therefore multiple SSL certificates applied to the account. When you finally have an SSL certificate applied to both domains, you can apply the re-direct rule with no problems.

I hope this helps to answer your question, please let us know if you require any further assistance.

Arnel C.

You must login before you can post a comment about this answer.

Hello Annel,

Both domains have valid certificates. we are not hosted on third party servers, Both domain servers have separate IP Address. here the issue we are experiencing is when browser access before redirect and during ssl handshake browser comparing with ssl certificate. Please guide me how to handle this or send me link, i will go through it.


3 Points
2014-12-22 3:19 am EST
When accessing both over HTTPS, you will need to have SSL certificates for both domains. It certainly sounds as if you only have a single SSL certificate installed for which is causing the issue. You would need to obtain an SSL certificate for even to handle the initial redirect if you access it over HTTPS.
11,186 Points
2014-12-22 10:22 am EST
Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!