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.

https URL

Discussion in 'Security' started by huma1985, Mar 14, 2018.

  1. huma1985

    huma1985 Registered

    Joined:
    Jun 13, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Saudi arabia
    cPanel Access Level:
    Website Owner
    Hi sir
    I am using https to my site but http is not referring my site

    kindly someone tell me what’s problem I recently received ccl certificate.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To clarify, are you attempting to automatically redirect all HTTP requests to the HTTPS URL?

    Thank you.
     
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    935
    Likes Received:
    32
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    a rewrite rule in .htaccess might help.

    something along the lines:

    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
     
    cPanelMichael likes this.
Loading...

Share This Page