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!

Access to site via HTTPS but not HTTP?

Discussion in 'Security' started by The Web Servant, Jan 5, 2018.

  1. The Web Servant

    The Web Servant Registered

    Joined:
    Jan 4, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bulacan, Philippines
    cPanel Access Level:
    Root Administrator
    Try it here: - Removed -
    try without the "s" - Removed -

    then try with "s" - Removed -

    It's not just me, sirs. What settings in WHM can I correct this issue? Thanks in advance.
     
    #1 The Web Servant, Jan 5, 2018
    Last edited by a moderator: Jan 5, 2018
  2. The Web Servant

    The Web Servant Registered

    Joined:
    Jan 4, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bulacan, Philippines
    cPanel Access Level:
    Root Administrator
    The problem is I can access my site through HTTPS but not HTTP. If I access it via normal URL, it says ...

    This site can’t be reached
    www_mysite_dot_com refused to connect.

    • Search Google for www_mysite_dot_com
    ERR_CONNECTION_REFUSED

    What settings in the WHM can I correct this issue? Thanks in advance.
     
    #2 The Web Servant, Jan 5, 2018
    Last edited by a moderator: Jan 5, 2018
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,806
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you let us know the contents of the .htaccess file within the document root of the website? Ensure to replace real domain names with examples.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. The Web Servant

    The Web Servant Registered

    Joined:
    Jan 4, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bulacan, Philippines
    cPanel Access Level:
    Root Administrator
    Thanks for your response, sir. Below is the content of the .htaccess under /public_html/

    Options -MultiViews -Indexes

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

    This should convert http://example.com/whatever_uri to https://example.com/whatever_uri
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,806
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Do you have any additional redirects configured on the domain name (e.g. through a PHP script's configuration settings, or in additional .htaccess files in other directories)? If not, feel free to open a support ticket using the link in my signature so we can take a closer look.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice