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.
This commit is contained in:
Nick Khaetsky 2020-03-27 21:14:51 +03:00 committed by GitHub
parent 61cadeb623
commit df0c2d4b95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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