diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2020-12-30 19:45:22 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2020-12-30 19:45:53 -0500 |
| commit | 967c9a7a7fa8d1a9d718b9c13be2819824344886 (patch) | |
| tree | 5ab1493be684b5069f500f57e725964554828941 | |
| parent | 4f67a4d0a4a79800c8727615367a3b67ff15b864 (diff) | |
add redirect for broken link
| -rw-r--r-- | nginx/nginx.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index ac523a50..6190ffa6 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -176,6 +176,11 @@ http { http2_push /grapheneos.css?29; } + # broken link (now fixed) on https://noagendaphone.com/ with UTF-8 replacement character + location ~ "/\xEF\xBF\xBC" { + return 301 /; + } + location ~ "^(.*)/index$" { return 301 $1/; } |
