Skip to content

Instantly share code, notes, and snippets.

@noogen
Created July 7, 2017 22:14
Show Gist options
  • Save noogen/bfa88d742503fa33ead61a8590312e1b to your computer and use it in GitHub Desktop.
Save noogen/bfa88d742503fa33ead61a8590312e1b to your computer and use it in GitHub Desktop.
https redirect .htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment