force ssl and remove obsolete stuff

This commit is contained in:
2023-05-06 22:38:24 +10:00
parent 3d28e73369
commit 985f7c94da

View File

@@ -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