Adding the following into the .htaccess file at the root of your webspace, will redirect to the https version.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Header always set Content-Security-Policy "upgrade-insecure-requests;"

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.