Skip to content
Permalink
Browse files
Try fix language redirect
  • Loading branch information
AlbumenJ committed Apr 14, 2022
1 parent bc588b1 commit 6664bcd42fd1fb44f2c2ad696f9853e619f51045
Showing 1 changed file with 7 additions and 0 deletions.
@@ -2,4 +2,11 @@
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# language starts with ZH
RewriteCond %{HTTP:Accept-Language} ^zh [NC]
RewriteRule ^$ /zh/ [L,R=301]

# else redirect to the English version
RewriteRule ^$ /en/ [L,R=301]
</IfModule>

0 comments on commit 6664bcd

Please sign in to comment.