Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
GetTor Project
GettorWeb
Commits
39756ac8
Commit
39756ac8
authored
Mar 24, 2021
by
emmapeel
🤖
Browse files
add first .htaccess file as part of...
add first .htaccess file as part of
#2
parent
1254596c
Changes
1
Hide whitespace changes
Inline
Side-by-side
.htaccess
0 → 100644
View file @
39756ac8
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]
Hiro
🏄
@hiro
mentioned in commit
3527d5b5
·
Mar 24, 2021
mentioned in commit
3527d5b5
mentioned in commit 3527d5b5f85bb517e530ba36898f30db1dc692c3
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment