redirecting http to https in .htaccess file:
RewriteEngine on RewriteCond %{HTTP_HOST} web site name\.com [NC] RewriteCond %{SERVER_PORT} 80 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/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*)$ https://web site name.com/$1 [R,L]