From 81fa2a6f23c11eab694c5b8a2de6da23d0945af2 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 2 Jun 2021 20:07:52 -0400 Subject: [PATCH] treat html extension as an implementation detail These redirects aren't being used for any of the actual pages based on the access logs. --- nginx/nginx.conf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 187d1011..e1a8fde2 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -133,10 +133,6 @@ http { gzip_static on; brotli_static on; - if ($request_uri ~ ^/(.*)\.html$) { - return 301 /$1; - } - if ($request_uri ~ (.*)//(.*)) { return 301 $1/$2; } @@ -293,7 +289,7 @@ http { add_header Cache-Control "public, max-age=1800"; } - location ~ "\.(br|gz)$" { + location ~ "\.(br|gz|html)$" { internal; }