From 78ed85ec5f673827f1b4f992dcb30c73597fa2c5 Mon Sep 17 00:00:00 2001 From: Zhongxiang Wang Date: Fri, 23 Feb 2024 10:03:00 +0800 Subject: [PATCH] update .htaccess --- .htaccess | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index cab07997c..fc8585f12 100644 --- a/.htaccess +++ b/.htaccess @@ -42,9 +42,15 @@ RedirectMatch 404 /\.asf\.yaml + + webp|apng|avif)$"> + Header setifempty Content-Type "image/%{MATCH_imgExt}e" + + + RewriteEngine On - + RewriteCond "%{HTTP:Accept-Language}" ^zh [NC] RewriteRule ^/?(index\.html)?$ "/zh/index.html" [L,R=302]