From 985f7c94da640bfd1cd03e6cc5c540d993d4a83a Mon Sep 17 00:00:00 2001 From: James Collins Date: Sat, 6 May 2023 22:38:24 +1000 Subject: [PATCH] force ssl and remove obsolete stuff --- public/.htaccess | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index 12aafaf..1a44680 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -13,10 +13,12 @@ RewriteEngine On + # Force HTTPS + RewriteCond %{HTTPS} !=on + RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + # Support shortlinks RewriteCond %{HTTP_HOST} ^(www\.)?stemmech\.com\.au$ [NC] - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ shortlink.php?code=$1 [L,QSA] # Add www subdomain if missing