[tor-commits] [gettor-web/master] add first .htaccess file as part of https://gitlab.torproject.org/tpo/anti-censorship/gettor-project/gettor-web/-/issues/2

hiro at torproject.org hiro at torproject.org
Wed Mar 24 17:04:45 UTC 2021


commit 39756ac80e44b433322ae35a137e9ca3e1725607
Author: emma peel <emma.peel at riseup.net>
Date:   Wed Mar 24 12:19:52 2021 +0100

    add first .htaccess file as part of https://gitlab.torproject.org/tpo/anti-censorship/gettor-project/gettor-web/-/issues/2
---
 .htaccess | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..5d11524
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,21 @@
+RewriteEngine On
+
+# forward requests in /en and /en-US to the root folder
+RewriteRule ^(en|en-US)$ / [R=302,L]
+RewriteRule ^(en|en-US)/(.*) /$2 [R=302,L]
+
+# Rewrites for languages that have a different mapping in the page than in TBB
+RewriteRule ^(es-ES|es-MX|es-CO|es-AR)(.*) /es$2 [R=302,L]
+
+# we have only one translation for this locales
+RewriteRule ^(bn-BD|bn-IN)(.*) /bn$2 [R=302,L]
+
+# we call this locale different than mozilla
+RewriteRule ^ga-IE/(.*) /ga$1 [R=302,L]
+
+# Rewrites for languages that have a Tor Browser release
+# but don't have a gettor website translation
+# You can see them at https://dist.torproject.org/torbrowser/, pick the last alpha for the most languages
+# this languages are the translation priority for the gettor website
+RewriteRule ^(ar|ca|cs|da|de|el|fa|ga|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-PT|ro|ru|sv-SE|th|tr|vi|zh-CN|zh-TW)$ / [R=302,L]
+RewriteRule ^(ar|ca|cs|da|de|el|fa|ga|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-PT|ro|ru|sv-SE|th|tr|vi|zh-CN|zh-TW)/(.*) /$2 [R=302,L]





More information about the tor-commits mailing list