avoid redirect for double slash in parameters

This commit is contained in:
Daniel Micay 2022-02-01 21:24:51 -05:00
parent 3cd9b982c3
commit 6d5f192ccb

View File

@ -192,7 +192,7 @@ http {
gzip_static on; gzip_static on;
brotli_static on; brotli_static on;
if ($request_uri ~ //) { if ($request_uri ~ ^[^?]+//) {
rewrite ^(.*)$ $1 permanent; rewrite ^(.*)$ $1 permanent;
} }