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!

cPanel .htaccess entries for autoSSL

Discussion in 'Security' started by nivekau, Jun 10, 2018.

  1. nivekau

    nivekau Active Member

    Joined:
    Jul 22, 2011
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    When I run autoSSL cpanel inserts a code into the domain's .htaccess file in the public_html directory, in any in any rewrite conditions, such as;

    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

    Once the SSL certificate for a domain has been installed, can these entries be deleted?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @nivekau

    Once the SSL is issued it is perfectly safe to remove the rewrite conditions added to the .htaccess, it should be noted though that in 90-days when the certificate is requested again they will be re-added and will not cause any negative effects being left within the .htaccess.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nivekau

    nivekau Active Member

    Joined:
    Jul 22, 2011
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Thanks Lauren.
    So does that happen every 90 days?
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @nivekau

    It does happen every 90 days, the only exception is if you add a new domain to the account.

    Thanks!
     
    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