cPanel .htaccess entries for autoSSL
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?
-
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! 0 -
Thanks Lauren. So does that happen every 90 days? 0 -
Hi @nivekau It does happen every 90 days, the only exception is if you add a new domain to the account. Thanks! 0
Please sign in to leave a comment.
Comments
3 comments