summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx/nginx.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 674b2e8d..b42c3646 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -192,8 +192,8 @@ http {
gzip_static on;
brotli_static on;
- if ($request_uri ~ (.*)//(.*)) {
- return 301 $1/$2;
+ if ($request_uri ~ //) {
+ rewrite ^(.*)$ $1 permanent;
}
location = /, {