Skip to content

Instantly share code, notes, and snippets.

@Chippiewill
Created February 9, 2019 11:30
Show Gist options
  • Save Chippiewill/746940d0bb3d6bd05001538096764354 to your computer and use it in GitHub Desktop.
Save Chippiewill/746940d0bb3d6bd05001538096764354 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment