[Scummvm-git-logs] scummvm-web master -> 945264d63373564168eac46759aafd4ef9774f37
sev-
sev at scummvm.org
Fri Jun 29 21:00:02 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
945264d633 WEB: Always redirect requests to https on the main site
Commit: 945264d63373564168eac46759aafd4ef9774f37
https://github.com/scummvm/scummvm-web/commit/945264d63373564168eac46759aafd4ef9774f37
Author: Matan Bareket (mataniko at gmail.com)
Date: 2018-06-29T20:59:55+02:00
Commit Message:
WEB: Always redirect requests to https on the main site
Changed paths:
.htaccess
diff --git a/.htaccess b/.htaccess
index d07da10..46bdcfc 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,6 +1,11 @@
# Enable mod_rewrite
RewriteEngine On
+# Always redirect to HTTPS except when browsing in localhost
+RewriteCond %{HTTPS} off
+RewriteCond %{HTTP_HOST} !=localhost
+RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
+
# Set the base for the rewritten URLs
# NOTE: When debugging locally, set this to the directory the site is in
RewriteBase /
More information about the Scummvm-git-logs
mailing list