To redirect all http requests to https, create a .htaccess file with the following content. Place the .htaccess file in the document root of the site.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
SSLRequireSSL
Advertisements