2022-09-13 08:13:02 +00:00
<!doctype html>
< html >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2022-10-31 07:44:05 +00:00
< link rel = "stylesheet" href = "../style.css" type = "text/css" / >
2022-09-13 08:13:02 +00:00
< title > Resource redirection< / title >
< script type = "text/javascript" >
function findLang(){
let href = location.href;
for(let i=href.length-1;i>0;i--){
if('/'==href.charAt(i) & & '/'==href.charAt(i-3))
return i;
}
return 0;
}
function nav2(page){
let i = findLang();
location.href = location.href.substring(0,i+1)+page;
}
function nav2Lang(lang){
let i = findLang();
let href = location.href;
location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
}
< / script >
< / head >
< body >
< header class = 'header' >
< a class = "logo" href = "javascript:void(0)" onclick = "return nav2('index.html')" > Home< / a > < a class = "logo" href = "javascript:void(0)" onclick = "return nav2('tags/index.html')" > Tags< / a >
< a class = "logo" href = "javascript:void(0)" onclick = "return nav2Lang('zh')" > 简体中文< / a >
< nav >
< / nav >
< / header >
< br / >
< div class = "container" >
< h1 class = "title" > Resource redirection
< br >
< span class = "subtitle" > < / span >
< / h1 >
< ul class = "tags" >
< li > < a href = "../tags/redirection" > redirection< / a > < / li >
< / ul >
2023-04-12 00:07:52 +00:00
< h4 id = "global-redirection" > Global redirection< / h4 >
< p > < a href = "i:60/data/data/info.torapp.uweb/files/config.html:https://jamesfengcao.codeberg.page/en/searchurl/config.html" > Global redirection< / a > is enabled with the setting option " Resource redirection" .< / p >
< p > When a valid global redirection url is set, the " default.redirect" has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.< / p >
2023-04-13 03:13:46 +00:00
< p > < span style = "color:red" > Global redirection redirects cookies with the setting option " Hide certificate errors" < / span > , so use the option with care.< / p >
2023-04-12 00:07:52 +00:00
< h4 id = "defaultredirect-valid-only-without-global-redirection-url" > " default.redirect" (valid only without global redirection url)< / h4 >
< p > Click the following links to append mirrors to the file " default.redirect" :< br >
< a target = "_self" href = "i:0gdefault.redirect:../../zh/searchurl/txt/redirect.cfg" > google recaptcha mirror< / a > < / p >
2022-09-13 08:13:02 +00:00
< p > Each line of the file " default.redirect" has the following format:< br >
[domain name]:[regular expression]:[replacement expression]< / p >
< p > in which " [regular expression]" is as defined by java language, and cannot have " :" inside; if empty, it defaults to be same as " [domain name]" .< / p >
2023-04-12 00:07:52 +00:00
< h5 id = "ways-to-enable-domain-redirection" > Ways to enable domain redirection:< / h5 >
2022-09-13 08:13:02 +00:00
< ul >
2023-04-12 00:30:25 +00:00
< li > < a href = "../urls/index.html" > Long pressing the image button< / a > 。< / li >
2022-09-13 08:13:02 +00:00
< li > Long pressing the setting button, enable the option " url redirection" .< / li >
< li > Long pressing the setting button, enable the option " Resource redirection" .< / li >
< / ul >
< / div >
2023-04-12 00:07:52 +00:00
< p > Last Modified: 12 April 2023< br >
2023-04-13 03:13:46 +00:00
refine global redirection cookie support< br >
2023-03-07 02:07:05 +00:00
< pre > < / pre >
< / p >
2022-09-13 08:13:02 +00:00
< / body >
< / html >