From 00c47f4722ac2cb5add21f933b7864154fcc003c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20=C3=87ALI=C5=9EIR?= Date: Sun, 25 Oct 2026 15:02:50 +0300 Subject: [PATCH] replace rewrite with return 301 for HTTPS redirect --- nginx/default.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/default.conf b/nginx/default.conf index 9901d4b..da59442 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -35,7 +35,7 @@ server { # HTTPS Redirect ################# location / { - rewrite ^ https://$host$request_uri? permanent; + return 301 https://$host$request_uri; } }