rebuilding site Sat Jul 9 08:45:16 AM CST 2022

This commit is contained in:
James Feng Cao 2022-07-09 08:45:17 +08:00
parent 4608c0fc8d
commit e6a2e5d8d9
89 changed files with 530 additions and 478 deletions

View file

@ -37,14 +37,14 @@
<li><a href="../tags/%e5%9b%bd%e5%a4%96%e7%bd%91%e5%9d%80">国外网址</a> </li>
</ul>
<p><a href="i:0g/sdcard/uweb/default.redirect::github.com::hub.fastgit.xyz%0A">github mirror:fastgit</a><br>
<a href="i:0g/sdcard/uweb/default.redirect::github.com::hub.0z.gs%0A">github mirror 2</a><br>
<a href="i:0g/sdcard/uweb/default.redirect::github.com::api.mtr.pub%0A">github mirror 3</a></p>
<p><a target="_self" href="i:0g/sdcard/uweb/default.redirect:http://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/txt/redirect.cfg">点击添加google recaptcha国内镜像</a></p>
<p><a href="i:0gdefault.redirect::github.com::hub.fastgit.xyz%0A">github mirror:fastgit</a><br>
<a href="i:0gdefault.redirect::github.com::hub.0z.gs%0A">github mirror 2</a><br>
<a href="i:0gdefault.redirect::github.com::api.mtr.pub%0A">github mirror 3</a></p>
<p><a target="_self" href="i:0gdefault.redirect:http://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/txt/redirect.cfg">点击添加google recaptcha国内镜像</a></p>
<p>使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。</p>
<p>其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。</p>
<p>本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。</p>
<p>配置/sdcard/uweb/default.redirect:<br>
<p>配置default.redirect:<br>
文件每一行格式为:<br>
域名:正则表达式:替换表达式</p>
<p>其中正则表达式以java语言规定为准表达式中不能包含':'。正则表达式为空时系统默认为与域名相同。正则表达式,替换表达式同时为空时无重定向作用但域名会允许CORS跨域访问 (目前仅对&quot;GET&quot; request生效)。</p>
@ -54,7 +54,7 @@ developer.android.com::developer.android.google.cn</p>
<ul>
<li>
<p>长按链接<br>
添加文件&quot;国内镜像.js&quot;&quot;/sdcard/uweb/longclick&quot;目录下。<br>
添加文件&quot;国内镜像.js&quot;&quot;longclick&quot;目录下。<br>
文件内容如下:</p>
<pre>//e:%u</pre>
<p>其中&quot;e:&quot;为uweb特殊url协议意为&quot;edit&quot;,即&quot;编辑&quot;。当后面紧跟url网址的情况下会重定向网址。</p>