diff --git a/static-env-handler.sh b/static-env-handler.sh index 181de46..2f03e13 100755 --- a/static-env-handler.sh +++ b/static-env-handler.sh @@ -62,7 +62,7 @@ location = / { if ($args = '') { rewrite ^ /redirect.html last; } - rewrite ^/$ /index.html?$args redirect; + rewrite ^/$ /index.html?$args? redirect; } location = /index.html {