From 168f9d744e99d574589e30d6d521191161cc570b Mon Sep 17 00:00:00 2001 From: Unick Soft Date: Sat, 20 Apr 2019 10:43:24 +0200 Subject: [PATCH] https redirect for wiki --- wiki/.htaccess | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wiki/.htaccess b/wiki/.htaccess index fde9dd8..26d17e1 100755 --- a/wiki/.htaccess +++ b/wiki/.htaccess @@ -2,6 +2,11 @@ RewriteEngine On # Define the rewrite base. RewriteBase /wiki + +# Auto redirect to https. +RewriteCond %{HTTPS} off +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + # Send requests without parameters to pmwiki.php. RewriteRule ^$ pmwiki.php [L] # Send requests for index.php to pmwiki.php.