Skip to content

Commit

Permalink
Update htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Dec 15, 2022
1 parent d746348 commit 20c4d4a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@

RewriteRule ^/?(index\.html)?$ "/en/index.html" [L,R=302]

# special redirection for examples & handbook
RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
RewriteRule ^/?faq/?([\w\-/]+)?$ "/zh/docs3-v2/java-sdk/faq/$1" [L,R=302]

RewriteRule ^/?faq/?([\w\-/]+)?$ "/en/docs/java-sdk/faq/$1" [L,R=302]

RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
RewriteRule ^/?([\w\-]+)\.html$ "/zh/$1.html" [L,R=302]

RewriteRule ^/?([\w\-]+)\.html$ "/en/$1.html" [L,R=302]

</IfModule>

0 comments on commit 20c4d4a

Please sign in to comment.