uweb/redirect/index.html

189 lines
6.1 KiB
HTML
Raw Normal View History

2018-12-18 22:56:58 +00:00
<!DOCTYPE html>
<html lang="en">
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keyword" content="">
2020-03-13 14:56:23 +00:00
<link rel="shortcut icon" href="/uWeb/img/favicon.ico">
2018-12-18 22:56:58 +00:00
<title>
2019-11-20 03:21:39 +00:00
重定向国外网址至国内镜像(附编辑本地文件)
2018-12-18 22:56:58 +00:00
</title>
<!-- Custom CSS -->
2020-03-13 14:56:23 +00:00
<link rel="stylesheet" href="/uWeb/css/aircloud.css">
2018-12-18 22:56:58 +00:00
<link href="//at.alicdn.com/t/font_620856_pl6z7sid89qkt9.css" rel="stylesheet" type="text/css">
<!-- ga & ba script hoook -->
<script></script>
</head>
<body>
<div class="site-nav-toggle" id="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
<div class="index-about">
<i> </i>
</div>
<div class="index-container">
<div class="index-left">
<div class="nav" id="nav">
<div class="contents" id="nav-content">
<ul>
2019-01-24 23:31:13 +00:00
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/">
2018-12-18 22:56:58 +00:00
<i class="iconfont icon-shouye1"></i>
2020-03-28 04:18:15 +00:00
<span>主页</span>
2018-12-18 22:56:58 +00:00
</a>
</li>
2019-01-24 23:31:13 +00:00
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/tags">
2018-12-18 22:56:58 +00:00
<i class="iconfont icon-biaoqian1"></i>
2020-03-28 04:18:15 +00:00
<span>标签</span>
2019-01-24 09:50:57 +00:00
</a>
</li>
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/archives">
2019-01-24 23:31:13 +00:00
<i class="iconfont icon-guidang2"></i>
2020-03-28 04:18:15 +00:00
<span>存档</span>
2019-01-24 09:50:57 +00:00
</a>
</li>
2019-01-24 23:31:13 +00:00
2018-12-18 22:56:58 +00:00
</ul>
</div>
2019-01-24 23:31:13 +00:00
<div id="toc" class="toc-article">
</div>
2018-12-18 22:56:58 +00:00
</div>
<div class="search-field" id="search-field">
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
2019-01-24 23:31:13 +00:00
<input id="search-input">
2020-03-28 04:18:15 +00:00
<span id="begin-search">搜索</span>
2018-12-18 22:56:58 +00:00
</div>
<div class="search-result-container" id="search-result-container">
</div>
</div>
</div>
<div class="index-about-mobile">
<i> </i>
</div>
</div>
<div class="index-middle">
<!-- Main Content -->
<div class="post-container">
<div class="post-title">
2019-11-20 03:21:39 +00:00
重定向国外网址至国内镜像(附编辑本地文件)
2018-12-18 22:56:58 +00:00
</div>
<div class="post-meta">
2020-03-28 04:18:15 +00:00
<span class="attr">发布于:<span>2019-11-13 20:46:18</span></span>
2018-12-18 22:56:58 +00:00
2020-03-28 04:18:15 +00:00
<span class="attr">标签:/
2018-12-18 22:56:58 +00:00
2020-03-13 14:56:23 +00:00
<a class="tag" href="/uWeb/tags/#国外网址" title="国外网址">国外网址</a>
2019-05-25 12:28:50 +00:00
<span>/</span>
2020-03-13 14:56:23 +00:00
<a class="tag" href="/uWeb/tags/#重定向" title="重定向">重定向</a>
2019-05-25 12:28:50 +00:00
<span>/</span>
</span>
2019-02-06 03:48:41 +00:00
2018-12-18 22:56:58 +00:00
</div>
<div class="post-content ">
<p>使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。</p>
<p>其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。</p>
<p>本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。</p>
2019-11-15 02:54:01 +00:00
<p>配置/sdcard/uweb/default.redirect:<br>文件每一行格式为:<br>域名:正则表达式:替换表达式</p>
<p>其中正则表达式以java语言规定为准表达式中不能包含:’。正则表达式为空时系统默认为与域名相同。</p>
<p>例子文件内容如下:<br>developer.android.com::developer.android.google.cn</p>
<p>四种使用重定向的方法:</p>
<ul>
<li><p>长按链接<br>添加文件”国内镜像.js”至”/sdcard/uweb/longclick”目录下。<br>文件内容如下:</p>
<pre>//e:%s</pre>
<p>其中”e:”为uweb特殊url协议意为”edit”即”编辑”。当后面紧跟url网址的情况下会重定向网址。</p>
2019-11-20 03:21:39 +00:00
<p>重启uweb后长按链接弹出菜单选”国内镜像”浏览器将访问网址的国内镜像。若网址为本地文件则浏览器会自动调用此类文件编辑器。</p>
2019-11-15 02:54:01 +00:00
</li>
<li><p><a href="../urls">长按工具条图像按钮</a></p>
</li>
<li>长按设置,选中”自定义重定向”。</li>
<li>长按设置选中”自定义资源重定向”。此选项除访问url重定向之外还可重定向网页中一切资源。</li>
</ul>
<p>更多重定向网址:<br><a href="http://www.bilibili.com::www.ibilibili.com" target="_blank" rel="noopener">www.bilibili.com::www.ibilibili.com</a><br>pan.baidu.com::pan.baiduwp.com<br><a href="http://www.docin.com::www.docin365.com" target="_blank" rel="noopener">www.docin.com::www.docin365.com</a><br>wenku.baidu.com::wenku.baiduvvv.com<br>detail.tmall.com::detail.tmallvvv.com<br>detail.m.tmall.com::detail.m.tmallvvv.com<br>item.taobao.com::item.taobaovvv.com<br>h5.m.taobao.com::h5.m.taobaovvv.com<br>jd.com::jdvvv.com<br>item.yhd.com::item.yhdvvv.com<br>goods.kaola.com::goods.kaolavvv.com<br>product.dangdang.com::product.dangdangvvv.com<br>item.gome.com.cn::item.gomevvv.com.cn</p>
2018-12-18 22:56:58 +00:00
<br>
<div id="comment-container">
</div>
<div id="disqus_thread"></div>
<div id="lv-container">
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<ul class="list-inline text-center">
</ul>
</footer>
</body>
<script>
// We expose some of the variables needed by the front end
window.hexo_search_path = ""
2020-03-13 14:56:23 +00:00
window.hexo_root = "/uWeb/"
2018-12-18 22:56:58 +00:00
window.isPost = true
</script>
2020-03-13 14:56:23 +00:00
<script src="/uWeb/js/index.js"></script>
2018-12-18 22:56:58 +00:00
</html>