| RedirectMatch 404 /\.git |
| RedirectMatch 404 /\.gitignore |
| RedirectMatch 404 /\.htaccess |
| |
| Header set Access-Control-Allow-Origin "https://echarts.apache.org" |
| Header set Access-Control-Allow-Methods: "*" |
| Header set Access-Control-Allow-Headers: "*" |
| |
| <IfModule mod_expires.c> |
| ExpiresActive on |
| |
| ExpiresByType text/html "access plus 1 hour" |
| ExpiresByType image/png "access plus 1 hour" |
| ExpiresByType image/jpg "access plus 1 hour" |
| ExpiresByType image/jpeg "access plus 1 hour" |
| ExpiresByType text/css "access plus 1 hour" |
| ExpiresByType application/javascript "access plus 1 hour" |
| ExpiresByType application/json "access plus 1 hour" |
| ExpiresDefault "access plus 10 days" |
| </IfModule> |
| |
| |
| RewriteEngine On |
| |
| RewriteCond "%{HTTP:Accept-Language}" ^zh [NC] |
| RewriteRule ^/?(index[.]html)?$ "/zh/index.html" [L,R=301] |
| |
| RewriteCond "%{HTTP:Accept-Language}" ^en [NC] |
| RewriteRule ^/?(index[.]html)?$ "/en/index.html" [L,R=301] |
| |
| RewriteRule ^/?(index[.]html)?$ "/en/index.html" [L,R=301] |
| |
| RewriteRule ^/?next\/?(.*) "/$1" [L,R=301] |