I found some weird code on my htaccess
Today i wanted to add a rule to my htaccess and i found this code that wasn't there before. One line mentions cpanel so i figured must be something cpanel did automatically? What does this do? and why is there? Thanks!
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301]-
AutoSSL! You can read more about this here: cPanel & WHM"s AutoSSL | cPanel Blog HTH! 0 -
I see. So do i need this enabled if i have https via cloudflare's dedicated certificate? Dedicated SSL Certificates 0 -
I would think you'd be fine disabling AutoSSL for the account. 0 -
AutoSSL disabled and removed the certificate for the domain on cpanel. https seems to be still working properly. Out of curiosity, was there any performance hit for having SSL enabled twice like my previous setup? EDIT: Spoke too soon. Disabling Auto SSL and deleting the current certificate takes the site offline. Don't do it! 0 -
I've got AutoSSL disabled on several domains without issue. 0 -
I've got AutoSSL disabled on several domains without issue.
And these domains force https?0 -
No. AutoSSL was enabled and then I disabled via: WebHost Manager "SSL/TLS "Manage AutoSSL Is that what you did and your sites went down? 0 -
No. AutoSSL was enabled and then I disabled via: WebHost Manager "SSL/TLS "Manage AutoSSL Is that what you did and your sites went down?
I did that but also went to cpanel and deleted the current certificate. Because as far as understood that step only disables the renewal after the cert expires so unless you delete it manually you will nto notice any difference by disabling autoSSL at least until the cert expires.0
Please sign in to leave a comment.
Comments
8 comments