support/.htaccess

21 lines
746 B
ApacheConf
Raw Normal View History

RewriteEngine On
2019-03-28 07:37:47 +01:00
2019-04-10 08:49:38 +02:00
# forward requests in /en and /en-US to the root folder
2019-03-29 13:33:15 +01:00
RewriteRule ^en(.+)$ /$1 [R=302,L]
2019-04-10 08:49:38 +02:00
RewriteRule ^en-US(.+)$ /$1 [R=302,L]
2019-03-28 07:53:07 +01:00
2019-04-10 08:49:38 +02:00
# Rewrites for languages that have a different mapping in the page than in TBB
2019-03-29 13:33:15 +01:00
RewriteRule ^es-ES/(.+)$ /es/$1 [R=302,L]
RewriteRule ^es-AR/(.+)$ /es/$1 [R=302,L]
2019-03-28 08:18:58 +01:00
# Our mapping is not the same as the Tor Browser
RewriteRule ^bn-BD/(.+)$ /bn/$1 [R=302,L]
RewriteRule ^bn-IN/(.+)$ /bn/$1 [R=302,L]
RewriteRule ^ga-IE/(.+)$ /ga/$1 [R=302,L]
2019-03-28 07:53:07 +01:00
# Rewrites for languages that have a Tor Browser release
# but don't have a support page
2019-04-10 08:49:38 +02:00
# this languages are the translation priority for the support portal!
RewriteRule ^(ar|cs|da|el|fa|he|hu|is|ja|ka|ko|nb-NO|nl|pl|ru|sv-SE|vi|zh-TW)/(.+)$ /$2 [R=302,L]