Skip to content

Instantly share code, notes, and snippets.

View pauvos's full-sized avatar
💭
🤡

Paul Voss pauvos

💭
🤡
  • Cologne, Germany
  • 02:50 (UTC +02:00)
View GitHub Profile
<IfModule mod_headers.c>
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]