Skip to content

Commit

Permalink
update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart authored Feb 23, 2024
1 parent 6ac45c0 commit 78ed85e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ RedirectMatch 404 /\.asf\.yaml
</IfModule>
</If>

<IfModule mod_headers.c>
<FilesMatch ".+\.(?<imgExt>webp|apng|avif)$">
Header setifempty Content-Type "image/%{MATCH_imgExt}e"
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
RewriteRule ^/?(index\.html)?$ "/zh/index.html" [L,R=302]
Expand Down

0 comments on commit 78ed85e

Please sign in to comment.