Skip to content

Commit aa119ff

Browse files
committed
Fix/improve rewrite rules
1 parent 0149a3c commit aa119ff

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

redirect.conf_

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,18 @@ rewrite ^/(en|ja)/(LICENSE|license).txt$ http://www.ruby-lang.org/en/about/licen
1616
rewrite ^/ja/old-man/.*$ http://doc.ruby-lang.org/ja/? permanent;
1717
rewrite ^/ja/man/.*$ http://doc.ruby-lang.org/ja/ permanent;
1818

19-
rewrite ^/zh_TW$ /zh_tw permanent;
20-
rewrite ^/zh_TW/(.*)$ /zh_tw/$1 permanent;
19+
rewrite ^/zh_TW(.*)$ /zh_tw$1 permanent;
20+
21+
rewrite ^/bg/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /bg/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
22+
rewrite ^/de/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /de/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
23+
rewrite ^/en/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
24+
rewrite ^/fr/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /fr/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
25+
rewrite ^/id/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /id/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
26+
rewrite ^/it/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /it/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
27+
rewrite ^/pt/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /pt/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
28+
rewrite ^/tr/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /tr/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
29+
rewrite ^/zh_cn/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /zh_cn/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
30+
rewrite ^/zh_tw/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-(.*)$ /zh_tw/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp$1 permanent;
2131

2232
rewrite ^/pl/spolecznosc/listy-mailingowe(.*)$ /pl/community/mailing-lists$1 permanent;
2333
rewrite ^/pl/spolecznosc/grupy-uzytkownikow(.*)$ /pl/community/user-groups$1 permanent;
@@ -48,13 +58,3 @@ rewrite ^/pt/documentacao(.*)$ /pt/documentation$1 permanent;
4858
rewrite ^/pt/bibliotecas/top-de-projectos-ruby(.*)$ /pt/libraries/top-projects$1 permanent;
4959
rewrite ^/pt/bibliotecas(.*)$ /pt/libraries$1 permanent;
5060

51-
rewrite ^/en/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;
52-
rewrite ^/de/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /de/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;
53-
rewrite ^/bg/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /bg/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;
54-
rewrite ^/fr/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /fr/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;
55-
rewrite ^/id/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /id/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;
56-
rewrite ^/it/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /it/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;
57-
rewrite ^/pt/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /pt/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;
58-
rewrite ^/tr/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /tr/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;
59-
rewrite ^/zh_cn/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /zh_cn/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;
60-
rewrite ^/zh_tw/documentation/ruby-from-other-languages/to-ruby-from-c-and-c- /zh_tw/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp permanent;

0 commit comments

Comments
 (0)