requestcontrol
requestcontrol copied to clipboard
How do you setup redirection?
Hi guys, how do you setup a rule to redirect links?
eg
Visit: https://www.site1.com/go/abc.html Redirect To: https://site2.com/abc/
Visit: https://www.site1.com/go/xyz.html Redirect To: https://site2.com/xyz/
Have you read the Request Control Manual 🙄
so did anyone figure out how to do this?

Pattern: www.site1.com /go/*
Regex: {href/^https?:\/\/www\.site1\.com\/go\/(.+)\.html$/https://site2.com/$1/}
redirect: http://sheyingtu-js.b0.aicdn.com/images/common/weixinewm.jpg
to:https://static.699pic.com/images/common/weixinewm.jpg
Regexp statement
(\/\w+)(\/\w+[-_.]?\w+\.\w+)
The manual is no enough understandable and clear.
The big redirect problem, this:
/images/common/weixinewm.jpg
redirect:https://sheyingtu-js.b0.aicdn.com/images/rj-iconv2.png
to:https://static.699pic.com/images/rj-iconv2.png
how to it?
As I understand you want something like
or

(both untested)
if one only is used, it works
{href/vo.aicdn.com/[protocol=https]img95.699pic.com} {href/sheyingtu-js.b0.aicdn.com/[protocol=https]static.699pic.com}
Thanks your reply How to redirect to URL that has same domain?
The "Redirect URL" is one URL (not "Redirect URLs"), so your rule will redirect http://sheyingtu-js.b0.aicdn.com/images/common/weixinewm.jpg (as example) to something like
http://sheyingtu-js.b0.aicdn.com/images/common/weixinewm.jpg http://[protocol=https]static.699pic.com/images/common/weixinewm.jpg
If you need to redirect from different origins to different origins you should create two rules. The "Redirect URL" syntax is linear, there are no flow control statements.
redirect:https://sheyingtu-js.b0.aicdn.com/headImage/thumb100_1798744120200624112237.jpg
to:https://static.699pic.com/headImage/thumb100_1798744120200624112237.jpg
redirect:https://static.699pic.com/headImage/thumb100_1798744120200624112237.jpg
to:https://img95.699pic.com/photo/40195/3314.jpg_wh860.jpg
https://img95.699pic.com/photo/40195/3314.jpg_wh860.jpg https://vo.aicdn.com/photo/40195/3314.jpg_wh860.jpg
{href/vo.aicdn.com/[protocol=https]img95.699pic.com} {href/sheyingtu-js.b0.aicdn.com/[protocol=https]static.699pic.com}
Redirect Rule is matching both URLs the project need to improved Hope, I contribute to project in the future
i found a script for this extension, well 3 & 8 months old for some it seems to work.. but for me? not at all somehow..
{href/^(.*)$/https://wsrv.nl/?url=$1&output=webp&q=20}
the script from this one post: https://pastebin.com/raw/fCX9Dd2P
i only see blocked requests but not redirected ones?
any idea what it could be? firefox