Select Page

You’ll find this information everywhere, I just wanted to document my favourite version which is generic and can be used in every .htaccess. Here we go:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

You’re welcome 😉