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!

Forcing https on a cPanel website?

Discussion in 'Security' started by albatroz, Jul 2, 2018.

  1. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Virtual Orbis / Peru
    cPanel Access Level:
    Root Administrator
    I would like to force the site - Removed -
    to load https automatically. Is there a simple way to do so from CPanel or WHM?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 albatroz, Jul 2, 2018
    Last edited by a moderator: Jul 2, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. davetanguay

    davetanguay Active Member

    Joined:
    Mar 30, 2008
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    56
    I had issues with using the redirects in cpanel to force SSL. Another option is to add the following to the .htaccess file within /public_html

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
     
    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