From df0c2d4b953bebb9da2d120a9e7bd90a30469019 Mon Sep 17 00:00:00 2001 From: Nick Khaetsky Date: Fri, 27 Mar 2020 21:14:51 +0300 Subject: [PATCH] Change default https redirect from 302 to 301 (#5008) Changing default redirect from http to https to 301 (permamently moved) from 302 (temporary moved). Reason: every website in nowadays must be working through https protocol, and 302 status is wrong for this type of redirect. --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index b964f57d5..1ceb6bfd7 100644 --- a/.htaccess +++ b/.htaccess @@ -16,7 +16,7 @@ ## Uncomment following lines to force HTTPS. ## # RewriteCond %{HTTPS} off - # RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L] + # RewriteRule (.*) https://%{SERVER_NAME}/$1 [L,R=301] ## ## Black listed folders