add redirects for URLs with extra slashes
This commit is contained in:
parent
5ffff6dfc1
commit
011af9527f
@ -113,6 +113,10 @@ http {
|
||||
return 301 /$1;
|
||||
}
|
||||
|
||||
if ($request_uri ~ "//") {
|
||||
return 301 $uri$is_args$args;
|
||||
}
|
||||
|
||||
location = /security.txt {
|
||||
return 301 /.well-known/security.txt;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user