diff --git a/.htaccess b/.htaccess index ae4a886e3..a95afca42 100644 --- a/.htaccess +++ b/.htaccess @@ -23,8 +23,8 @@ Header set Access-Control-Allow-Headers: "*" RewriteEngine On RewriteCond "%{HTTP:Accept-Language}" ^zh [NC] -RewriteRule ^/(index.html)?$ "/zh/index.html" [L,R=301] +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]