From ef28363e84283525762a8dad5ef75bdbc53d55c5 Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Wed, 26 Feb 2014 07:22:48 -0700 Subject: [PATCH] Redirect from http to https. --- www/aptui/.htaccess | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/aptui/.htaccess b/www/aptui/.htaccess index 04d48bbbf..0f92357e6 100644 --- a/www/aptui/.htaccess +++ b/www/aptui/.htaccess @@ -6,6 +6,11 @@ DirectoryIndex instantiate.php RewriteBase / RewriteEngine on +## Only perform this rule if we're on the expected domain +RewriteCond %{HTTP_HOST} aptlab\.net$ [NC] +RewriteCond %{HTTPS} off +RewriteRule (.*) https://www.aptlab.net%{REQUEST_URI} + # Old quickvm page. RewriteRule ^/quickvm.php /instantiate.php [R=301,L] -- GitLab