| Index: hiera/roles/web/adblockbrowser.yaml |
| =================================================================== |
| --- a/hiera/roles/web/adblockbrowser.yaml |
| +++ b/hiera/roles/web/adblockbrowser.yaml |
| @@ -9,6 +9,68 @@ |
| - www.adblockbrowser.org |
| is_default: true |
| custom_config: | |
| + rewrite ^/android-support/faq/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/android-support/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/android-support/privacy-options/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/android-support/acceptable-ads-config/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/ios-support/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/es-ES/?$ https://adblockbrowser.org/es/ permanent; |
| + rewrite ^/android-support/install/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/ios-support/additional-filter-lists/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/android-support/customizing-abb/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/android-support/adding-filter-list/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/android-support/changing-language https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/ios-support/changing-search-engine/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/ios-support/view-whitelisted-websites/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/ios-support/adding-filter-list/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/ios-support/disable-search-suggestions/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/ios-support/acceptable-ads-config/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/zh-CN/?$ https://adblockbrowser.org/zh_CN/ permanent; |
| + rewrite ^/android-support/removing-filter-list/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/ios-support/install/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/android-support/display-options/?^ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/blog/?$ https://adblockplus.org/blog/ permanent; |
| + rewrite ^/zh-CN/android-support/customizing-abb/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/pt-BR/android-support/acceptable-ads-config/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/es-ES/android-support/changing-language/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/es-ES/android-support/removing-filter-list/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/index.html https://adblockbrowser.org/ permanent; |
| + rewrite ^/ios-support/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/android/? https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/zh-CN/android-support/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/pt-PT/android-support/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/ios-support/removing-filter-list/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + rewrite ^/zh-CN/android-support/adding-filter-list/?$ https://adblockplus.org/forum/viewforum.php?f=15 permanent; |
| + rewrite ^/zh-TW/ios-support/install/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent; |
| + location /forum/viewforum { |
|
mathias
2018/05/30 07:45:28
Can't we just re-write all /forum/viewforum and /f
f.lopez
2018/05/30 19:03:41
Yes we can, I did it this way to make it as verbos
|
| + if ($arg_f = "22") |
| + { |
| + rewrite ^(.*)/?$ https://adblockplus.org/forum/viewforum.php permanent; |
| + } |
| + } |
| + location /forum/viewtopic { |
| + set $arguments $arg_f/$arg_t/$arg_start; |
| + if ($arguments = "2/40190/") |
| + { |
| + rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent; |
| + } |
| + if ($arguments = "2/36849/") |
| + { |
| + rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent; |
| + } |
| + if ($arguments = "1/23617/") |
| + { |
| + rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent; |
| + } |
| + if ($arguments = "9/40312/") |
| + { |
| + rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent; |
| + } |
| + if ($arguments = "18/21550/15") |
| + { |
| + rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent; |
| + } |
| + } |
| location /submit-feedback { |
| proxy_pass http://127.0.0.1:8000; |
| proxy_set_header User-Agent $http_user_agent; |