summaryrefslogtreecommitdiff
path: root/searx/plugins/https_rules/GoogleTranslate.xml
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-04-13 00:30:12 +0200
committerAdam Tauber <asciimoo@gmail.com>2015-04-13 00:30:12 +0200
commitd2a636f75d24953f5094ea97ab54a8a4353a65ff (patch)
tree22da091679dd5b9460391a50810b96b80020e15f /searx/plugins/https_rules/GoogleTranslate.xml
parent146928a74980b90de614b71512334ac0a6373048 (diff)
[mod] https rewrite pluginification
Diffstat (limited to 'searx/plugins/https_rules/GoogleTranslate.xml')
-rw-r--r--searx/plugins/https_rules/GoogleTranslate.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/searx/plugins/https_rules/GoogleTranslate.xml b/searx/plugins/https_rules/GoogleTranslate.xml
new file mode 100644
index 000000000..a004025ae
--- /dev/null
+++ b/searx/plugins/https_rules/GoogleTranslate.xml
@@ -0,0 +1,8 @@
+<ruleset name="Google Translate (broken)" default_off="redirect loops">
+ <target host="translate.googleapis.com" />
+ <target host="translate.google.com" />
+
+ <rule from="^http://translate\.googleapis\.com/" to="https://translate.googleapis.com/"/>
+ <rule from="^http://translate\.google\.com/"
+ to="https://translate.google.com/" />
+</ruleset>