httpd: change redirect status code to 301 when using forceSSL

This commit is contained in:
Stefan Mielke
2025-05-08 18:36:19 +02:00
parent b85e87fc64
commit 58521a94fd
@@ -232,7 +232,7 @@ let
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge [NC]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
''
else