diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-06-02 20:07:52 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-06-02 20:07:52 -0400 |
| commit | 81fa2a6f23c11eab694c5b8a2de6da23d0945af2 (patch) | |
| tree | cb47df7fde648909535a5d083f8def74c9171f6c /nginx | |
| parent | 02b2606b93bae75855915b075444480a469d947c (diff) | |
treat html extension as an implementation detail
These redirects aren't being used for any of the actual pages based on
the access logs.
Diffstat (limited to 'nginx')
| -rw-r--r-- | nginx/nginx.conf | 6 |
1 files changed, 1 insertions, 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; } |
