зеркало из https://github.com/mozilla/bedrock.git
Add global.conf redirects to fix bug 1013349
Reorder to eliminate conflicts with existing redirects.
This commit is contained in:
Родитель
11d5ae06ce
Коммит
85af954d8b
|
@ -105,10 +105,6 @@ RewriteRule ^(.*)index\.html$ $1 [L,R=301]
|
|||
|
||||
## Redirect things to django!
|
||||
|
||||
# bug 960689
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/legal\.html$ /$1about/legal/ [L,R=301]
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about(.*)$ /b/$1about$2 [PT]
|
||||
|
||||
# bug 797192, 892470
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?plugincheck(/?)$ /b/$1/plugincheck$2 [PT]
|
||||
|
||||
|
@ -397,6 +393,15 @@ RewriteRule ^/about/governance\.html$ /about/governance/ [L,R=301]
|
|||
RewriteRule ^/about/roles\.html$ /about/governance/roles/ [L,R=301]
|
||||
RewriteRule ^/about/organizations\.html$ /about/governance/organizations/ [L,R=301]
|
||||
|
||||
# bug 876233
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/participate/?$ /$1contribute/ [L,R=301]
|
||||
|
||||
# bug 960689, 1013349, 896474
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/legal\.html$ /$1about/legal/ [L,R=301]
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/partnerships\.html$ /$1about/partnerships/ [L,R=301]
|
||||
RewriteCond %{REQUEST_URI} !/about/forums/?
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about(.*)$ /b/$1about$2 [PT]
|
||||
|
||||
# bug 790784
|
||||
# NB: The /foundation/privacy-policy.html redirect must appear before the
|
||||
# foundation redirects added with bug 724633. Otherwise, the address will first
|
||||
|
@ -581,9 +586,6 @@ RewriteRule ^/en-US/opportunities(?:/(?:index.html)?)?$ https://careers.mozilla.
|
|||
# bug 926629
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?lightbeam(/?.*)$ /b/$1lightbeam$2 [PT]
|
||||
|
||||
# bug 876233
|
||||
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/participate/?$ /$1contribute/ [L,R=301]
|
||||
|
||||
# bug 675031
|
||||
RewriteRule ^/projects/fennec/(.*) http://website-archive.mozilla.org/www.mozilla.org/fennec_releasenotes/projects/fennec/$1 [L,R=301]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче