Skip to content

Instantly share code, notes, and snippets.

View thomaskglas's full-sized avatar

Thomas thomaskglas

  • FUGA
  • Netherlands
View GitHub Profile
@thomaskglas
thomaskglas / .htaccess
Created May 24, 2019 23:22
apache htaccess redirect non-https to https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>