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 to HTTP redirection

Discussion in 'General Discussion' started by chanklish, Oct 6, 2017.

  1. chanklish

    chanklish Active Member

    Joined:
    May 22, 2015
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    kinshasa
    cPanel Access Level:
    Root Administrator
    hello awesome people
    i have a small simple website with no ssl working normally
    if i open it in https .. it takes me to cgibin page then an error
    how can i redirect the https to http ? i tried the redirection inside cpanel and i tried the following in htaccess but still not working




    PHP:
    # Redirect HTTPS to HTTP
    RewriteCond %{HTTP:X-Forwarded-Proto} =https
    RewriteRule 
    ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    chanklish likes this.
  3. chanklish

    chanklish Active Member

    Joined:
    May 22, 2015
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    kinshasa
    cPanel Access Level:
    Root Administrator
    hello Michael .. i followed this before but in the account root i have this : This account does not have any installable certificates.
    now i added the cpanel license to the domain of the website ..restarted php and apache..removed all redirections and it worked
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    327
    Likes Received:
    94
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    This might work for you in your .htaccess file
    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} on
    RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
     
  5. chanklish

    chanklish Active Member

    Joined:
    May 22, 2015
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    kinshasa
    cPanel Access Level:
    Root Administrator
    i did it in the beginning and it did not work .. but the ssl thingy solved the issue ..but it shows the expiry is for 11/11/2017

    i have other ssl certificates connected to services (exim) not my apache issues from comodo but for apache i am using the cpanel certificate..is it regenerated later on ?
     
    #5 chanklish, Oct 7, 2017
    Last edited: Oct 7, 2017
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you confirm which certificate was installed for the domain name? Was it through the AutoSSL feature (WHM >> Manage AutoSSL), or did you use the service SSL certificate from "WHM >> Manage Service SSL Certificates"?

    Thank you.
     
  7. chanklish

    chanklish Active Member

    Joined:
    May 22, 2015
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    kinshasa
    cPanel Access Level:
    Root Administrator
    hello michael .. i think it was autossl as it has cpanel's name and had several dates ..but it was set on a different domain
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can browse to the "Logs" tab in "WHM >> Manage AutoSSL" and choose the username associated with the account to verify if it's detected as an existing AutoSSL certificate. If so, these certificates are automatically renewed every 90 days as long as AutoSSL is enabled for the account.

    Thank you.
     
Loading...

Share This Page