Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

The website is hosted on a shared server that supports SSL. The web hosting provider secures our website using SSL:

https://domain.com instead of http://domain.com

Ever since then all the client HTTP requests sent to the server are redirected to my website. Leading https://otherdomain.com and I'm presented with a warning message.

I now know its my fault and I should of known that most SSL certifications only support one IP address but...

Google Search results for my website's target keywords is now displaying these websites above my own, even though they have nothing even remotely related to the target keywords!

Already Done:

  • provide canonical URL in the HTML page.
  • told the problem to the server manager, who tells me it's normal but he'll look for a solution. This was one week ago, no answer since.

I have no idea why Google is providing these HTTPS URLS: i thought someone would have to submit them, or have them inside an HTML page in order for Google to actually index dummy HTTPS domains, but i see no reason why someone would do that.

Any suggestion on how to solve this situation? Go-live is in one week and SEO looks really bad because of that.

share|improve this question
add comment

migrated from serverfault.com Dec 1 '12 at 12:25

This question came from our site for professional system and network administrators.

3 Answers

You have a little control over the google index with robots.txt and google webmaster tools. You should look into them.

Another thing: SSL sertificates are not bound to an IP but to a domain. You will have to get a new certificate. I don't wan't to do commercial but if you want a quick, free and accepted certificate you can get one at StartSSL.

share|improve this answer
    
Uh yes, certificates are bound to IP addresses but issued for domain names. You can move a cert (with its PK) between IP addresses and servers... –  Mark Henderson Dec 1 '12 at 12:20
    
I think I might be a bit off with my terms. I think (and hope) we mean the same. –  Christopher Perrin Dec 1 '12 at 12:34
add comment

You should just do a check in the head of your website (I'm assuming it runs on PHP or something) and check the http-host header. If its yours, process normally, else redirect to an error page or generate a 404 or something.

That way your site keeps its content (and ranking) and the other domains that are sharing your IP get a generic page that takes away their page ranks for your content.

share|improve this answer
add comment

I solved it thanks to @mark handerson (sorry i'm unable to accept your answer since i'm not recognized by SE as the question asker. If a moderator could do that, it would be great. )

here is a php snippet that did the trick...

if($_SERVER['HTTP_HOST']!= 'mydomain.com'){
    header("Location: https://mydomain.com",true,301);
    exit;
}
share|improve this answer
add comment

Your Answer

 
discard

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