From f19b14f31fb8ddc71a47e4d7f8dedf68548a32be Mon Sep 17 00:00:00 2001 From: Vaibhav Maheshwari Date: Mon, 8 Oct 2018 02:04:32 +0530 Subject: [PATCH] Update zammad_ssl.conf Use return 301 instead of rewrite. --- contrib/nginx/zammad_ssl.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/nginx/zammad_ssl.conf b/contrib/nginx/zammad_ssl.conf index bc973ed86..d7a43f285 100644 --- a/contrib/nginx/zammad_ssl.conf +++ b/contrib/nginx/zammad_ssl.conf @@ -28,9 +28,8 @@ server { root /var/www/html; } - location / { - rewrite ^/(.*)$ https://example.com/$1 permanent; - } + return 301 https://example.com$request_uri; + }