MrBitcoin

.htaccess to redirect http to https

Jan 1st, 2021
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. RewriteEngine On
  2. RewriteCond %{HTTPS} !on
  3. RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
  4. RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
  5. RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
  6. RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  7. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  8.  
Advertisement
Add Comment
Please, Sign In to add comment