Created
July 28, 2018 18:54
-
-
Save joshhartman/2c0f3b2f81a3e8d5a1853dd54333206e to your computer and use it in GitHub Desktop.
cPanel AutoSSL Let's Encrypt mod_rewrite rules to add immediately before each RewriteRule line in your .htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_-]+$ | |
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment