Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSL conflict - https redirected to primary https domain

Discussion in 'Security' started by Tom Jeffrey, May 15, 2017.

  1. Tom Jeffrey

    Tom Jeffrey Registered

    Joined:
    Feb 4, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sherman, TX US
    cPanel Access Level:
    Root Administrator
    I hate to stir up an old thread, but with Google's new desire to see the world through an https: lens, having https: requests to a domain without a secure certificate redirect to the primary domain on a server is now causing all kinds of hell for keyword rankings.

    We are seeing the primary domain on the server getting indexed by Google when Google requests the non-secure domain via https://.

    So Google tries to index https://somedomain.com but instead of getting redirected the http://somedomain.com for indexing, it is getting 404: Page not found - HostGator instead.

    Therefore, content and keywords for 404: Page not found - HostGator are getting indexed under the name of https://somedomain.com and are showing up in Google results with the https://somedomain.com address as the link. Clicking on the link goes to 404: Page not found - HostGator of course.

    There has got to be a good way to overcome this situation.
     
  2. Tom Jeffrey

    Tom Jeffrey Registered

    Joined:
    Feb 4, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sherman, TX US
    cPanel Access Level:
    Root Administrator
    OK, the editor messed up my examples, so lets try it this way:

    We are seeing the primary domain on the server getting indexed by Google when Google requests the non-secure domain via https.

    So Google tries to index via https somedomain.com but instead of getting redirected the http version of somedomain.com for indexing, it is getting the https version of primary-example.com instead.

    Therefore, content and keywords for the https version of primary-example.com are getting indexed under the name of a non-existent https version of somedomain.com and are showing up in Google results with the https links to somedomain.com address as the link. Clicking on the link goes to https version primary-example.com of course.
     
  3. cPanelChrisI

    cPanelChrisI Technical Analyst II
    Staff Member

    Joined:
    Mar 24, 2014
    Messages:
    67
    Likes Received:
    11
    Trophy Points:
    83
    cPanel Access Level:
    Root Administrator
    Hello!

    From what it sounds like, there may be a configuration issue on the server where the domain is hosted. Normally, if there is no SSL certificate set up on a domain, it will use the shared certificate or the hostname certificate. If there is no default vhost for 443 on that IP, by default apache will load the first SSL vhost. If you don't have root access to the server, you may want to consider getting with your provider to ensure that there isn't a server configuration issue.

    Installing an SSL certificate on the domain would also likely resolve the issue. You may also be able to force a redirect to http:// from https:// in your .htaccess file instead to force google to load the http:// version of the site. This may help set that up as well.

    Forcing http using .htaccess

    Thanks!
     
Loading...

Share This Page