Redirect preserve path

This commit is contained in:
Jamie Curnow committed 2018-08-22 15:11:22 +10:00
1 parent c543a1dc34
commit 6783ffb0c1
2 files changed
+9 -7

No files matched your search

+5 -1
View File
@@ -15,6 +15,10 @@ server {
location / {
{% include "_forced_ssl.conf" %}
return 301 $scheme://{{ forward_domain_name }}$request_uri;
{% 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;
{% endif %}
}
}