add global redirect url support

This commit is contained in:
James Feng Cao 2023-04-12 08:07:52 +08:00
parent 96b13242b5
commit e35f094c97
11 changed files with 120 additions and 123 deletions

View file

@ -5,7 +5,20 @@
<link>/en/_posts/</link>
<description>Recent content in _posts on uweb browser: unlimited power</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Sat, 01 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Tue, 11 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Resource redirection</title>
<link>/en/redirect/</link>
<pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
<guid>/en/redirect/</guid>
<description>Global redirection Global redirection is enabled with the setting option &amp;quot;Resource redirection&amp;quot;.
When a valid global redirection url is set, the &amp;quot;default.redirect&amp;quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.
&amp;quot;default.redirect&amp;quot; (valid only without global redirection url) Click the following links to append mirrors to the file &amp;quot;default.redirect&amp;quot;:
google recaptcha mirror
Each line of the file &amp;quot;default.</description>
</item>
<item>
<title>Offline resources</title>
<link>/en/offlinecache/</link>
@ -194,22 +207,6 @@ Toggle all checkboxes in forms
Enable selection</description>
</item>
<item>
<title>Resource redirection</title>
<link>/en/redirect/</link>
<pubDate>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
<guid>/en/redirect/</guid>
<description>Click the following links to append mirrors to the file &amp;quot;default.redirect&amp;quot;:
github mirror:fastgit
github mirror 2
google recaptcha mirror
Each line of the file &amp;quot;default.redirect&amp;quot; has the following format:
[domain name]:[regular expression]:[replacement expression]
in which &amp;quot;[regular expression]&amp;quot; is as defined by java language, and cannot have &amp;quot;:&amp;quot; inside; if empty, it defaults to be same as &amp;quot;[domain name]&amp;quot;.
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &amp;quot;url redirection&amp;quot;.</description>
</item>
<item>
<title>Text selection</title>
<link>/en/pccopy/</link>