Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save joshhartman/2c0f3b2f81a3e8d5a1853dd54333206e to your computer and use it in GitHub Desktop.

Select an option

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