Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Create .htaccess (#108)
Browse files Browse the repository at this point in the history
This file will be moved into the root of the site when updated so that redirections can take place to the warning about missing translations.
  • Loading branch information
fredericsimard authored Aug 23, 2024
1 parent 9e44470 commit bb26527
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
RewriteEngine On

# Match any URL under /ja, /ru, /pt, /ko, /id, /de, /zh, or /zh-TW and redirect to the corresponding index.html
RewriteCond %{REQUEST_URI} ^/(ja|ru|pt|ko|id|de|zh|zh-TW)/
RewriteCond %{REQUEST_URI} !index\.html$
RewriteRule ^(.+?)/.+$ /$1/index.html [L,R=302]

0 comments on commit bb26527

Please sign in to comment.