manual/.htaccess

24 lines
777 B
ApacheConf
Raw Normal View History

RewriteEngine On
RewriteRule ^en-US/(.+)$ /$1 [R=302,L]
# forward requests in /en to the root folder
RewriteRule ^en/(.+)$ /$1 [R=302,L]
RewriteRule ^en / [R=302,L]
# Rewrites for languages that have a different mapping in the page
RewriteRule ^(es-ES|es-AR|es-MX|es-CO)(.+)$ /es$1 [R=302,L]
2019-03-28 09:13:01 +00:00
# support for old URLs
RewriteRule ^(.+)/security-slider.html$ /$1/security-slider/ [R=302,L]
2019-03-28 09:13:01 +00:00
# Rewrites for languages that have a Tor Browser release
2019-03-28 09:13:01 +00:00
# but don't have a translated manual
RewriteRule ^(cs|da|fa|he|hu|is|ja|ko|nb-NO|nl|pl|sv-SE|vi|zh-TW)/(.+)$ /$1 [R=302,L]
RewriteRule ^(cs|da|fa|he|hu|is|ja|ko|nb-NO|nl|pl|sv-SE|vi|zh-TW)$ / [R=302,L]
# we have only one translation for this file
2019-03-29 15:03:06 +00:00
RewriteRule ^bn-BD(.+)$ /bn$1 [R=302,L]
RewriteRule ^bn-IN(.+)$ /bn$1 [R=302,L]