my personal code snippet database

Apache

HTTP -> HTTPS Weiterleitung

RewriteEngine on
RewriteCond %{SERVER_NAME} =www.lichtnet.at [OR]
RewriteCond %{SERVER_NAME} =lichtnet.at
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]