From 46ed76c16871ac081edace08b726a7443d7dd653 Mon Sep 17 00:00:00 2001 From: Dad <107422850+dad84@users.noreply.github.com> Date: Mon, 16 Jan 2023 17:55:01 +0100 Subject: [PATCH] Update .htaccess force visitors of site to always use HTTPS --- .htaccess | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index ec7ccbf..8049bd8 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,8 @@ +#Rewrite everything to https +RewriteEngine On +RewriteCond %{HTTPS} !=on +RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + # Don't show directory listings for URLs which map to a directory. Options -Indexes @@ -132,4 +137,4 @@ DirectoryIndex index.php text/x-component \ text/xml - \ No newline at end of file +