Force HTTPS request using .htaccess
snippet in htaccess

Force HTTPS request using .htaccess

user341

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