# EXAMPLE ONLY: Apache 2.4, TLS terminates on this server. # Place in the document-root .htaccess, above internal routing rules. # Test with 302 first; use 301 only after verifying the result. RewriteEngine On RewriteCond %{HTTPS} !=on [OR] RewriteCond %{HTTP_HOST} !^www\.knut-edvart\.com$ [NC] RewriteRule ^ https://www.knut-edvart.com%{REQUEST_URI} [R=302,L]