diff --git a/src/backend/templates/redirection_host.conf b/src/backend/templates/redirection_host.conf index da40e5c..9d51a92 100644 --- a/src/backend/templates/redirection_host.conf +++ b/src/backend/templates/redirection_host.conf @@ -16,9 +16,9 @@ server { {% include "_forced_ssl.conf" %} {% if preserve_path == 1 or preserve_path == true %} - return 301 $scheme://{{ forward_domain_name }}$request_uri$request_uri; - {% else %} return 301 $scheme://{{ forward_domain_name }}$request_uri; + {% else %} + return 301 $scheme://{{ forward_domain_name }}; {% endif %} } }