13 lines
573 B
ApacheConf
13 lines
573 B
ApacheConf
|
|
|
||
|
|
RewriteEngine on
|
||
|
|
RewriteCond %{HTTPS} off
|
||
|
|
RewriteCond %{HTTP:X-Forwarded-SSL} !on
|
||
|
|
RewriteCond %{HTTP_HOST} ^sql\.spencerflagg\.com$ [OR]
|
||
|
|
RewriteCond %{HTTP_HOST} ^www\.sql\.spencerflagg\.com$
|
||
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
|
||
|
|
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\:\/\/sql\.spencerflagg\.com\/" [R=301,L]
|
||
|
|
|