From 6261dcfc9e4a85c06cf4c1ac8b2663d0b1af474b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Sajdl?= Date: Tue, 30 Jan 2018 18:13:01 +0100 Subject: [PATCH] Auto https fixup --- .htaccess | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.htaccess b/.htaccess index 477ffde..cb658e4 100644 --- a/.htaccess +++ b/.htaccess @@ -8,10 +8,10 @@ ErrorDocument 404 /404.php - RewriteEngine On - RewriteCond %{HTTPS} !=on - RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] - RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] + #DELETE THIS IF YOU DON'T HAVE HTTPS! + RewriteEngine On + RewriteCond %{HTTPS} off + RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] @@ -113,4 +113,4 @@ FileETag None ExpiresByType font/woff "access plus 1 month" ExpiresByType application/font-woff2 "access plus 1 month" ExpiresByType text/x-cross-domain-policy "access plus 1 week" - \ No newline at end of file +