mirror of
https://github.com/torproject/manual.git
synced 2024-12-13 04:06:19 +00:00
more .htaccess fixes
This commit is contained in:
parent
772e2d625c
commit
8645c0388e
@ -1,7 +1,7 @@
|
||||
RewriteEngine On
|
||||
|
||||
# support for old URLs
|
||||
RewriteRule ^(.*)/security-slider.html$ $1/security-slider/ [R=302,L]
|
||||
RewriteRule ^(.*)/security-slider.html$ /$1/security-slider/ [R=302,L]
|
||||
RewriteRule ^security-slider.html$ /security-slider/ [R=302,L]
|
||||
|
||||
RewriteRule ^en-US(.*) $1 [R=302,L]
|
||||
@ -10,12 +10,14 @@ RewriteRule ^en-US(.*) $1 [R=302,L]
|
||||
RewriteRule ^en(.*) $1 [R=302,L]
|
||||
|
||||
# Rewrites for languages that have a different mapping in the page
|
||||
RewriteRule ^(es-ES|es-MX|es-CO)(.*) /es$2 [R=302,L]
|
||||
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|he|hu|is|ja|ko|nb-NO|nl|pl|sv-SE|vi|zh-TW)(.*) $2 [R=302,L]
|
||||
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)/(.*) /$2 [R=302,L]
|
||||
|
||||
# we have only one translation for this locales
|
||||
RewriteRule ^bn-BD(.*) /bn$1 [R=302,L]
|
||||
|
Loading…
Reference in New Issue
Block a user