forked from torproject/manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
27 lines (21 loc) · 1.2 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
RewriteEngine On
# support for old URLs
RewriteRule ^(.*)/security-slider.html$ /$1/security-settings/ [R=302,L]
RewriteRule ^security-slider.html$ /security-settings/ [R=302,L]
# this document moved to the community portal
RewriteRule ^(.*)/becoming-tor-translator https://community.torproject.org/localization/becoming-tor-translator/ [R=302,L]
RewriteRule ^becoming-tor-translator https://community.torproject.org/localization/becoming-tor-translator/ [R=302,L]
# forward requests in /en to the root folder
RewriteRule ^(en-US|en)$ / [R=302,L]
RewriteRule ^(en-US|en)/(.*) /$2 [R=302,L]
# Rewrites for languages that have a different mapping in the page
RewriteRule ^(es-ES|es-MX|es-CO)$ /es [R=302,L]
RewriteRule ^(es-ES|es-MX|es-CO)/(.*) /es/$2 [R=302,L]
# Rewrites for languages that have a Tor Browser release
# but don't have a translated manual
# this languages are the priority for translation of the Tor Browser User Manual!
RewriteRule ^(cs|da|fa|hu|ja|ko|ms|nb-NO|nl|pl|sv-SE|vi|zh-TW)$ / [R=302,L]
RewriteRule ^(cs|da|fa|hu|ja|ko|ms|nb-NO|nl|pl|sv-SE|vi|zh-TW)/(.*) /$2 [R=302,L]
# we have only one translation for this locales
RewriteRule ^bn-(BD|IN)$ /bn [R=302,L]
RewriteRule ^bn-(BD|IN)/(.*) /bn/$2 [R=302,L]