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="">
|
|
|
|
|
<link rel="shortcut icon" href="/uWeb/img/favicon.ico">
|
|
|
|
|
|
|
|
|
|
<title>
|
|
|
|
|
|
2018-12-18 23:31:42 +00:00
|
|
|
|
重定向国外网址至国内镜像
|
2018-12-18 22:56:58 +00:00
|
|
|
|
|
|
|
|
|
</title>
|
|
|
|
|
|
|
|
|
|
<!-- Custom CSS -->
|
|
|
|
|
<link rel="stylesheet" href="/uWeb/css/aircloud.css">
|
|
|
|
|
<link rel="stylesheet" href="/uWeb/css/gitment.css">
|
|
|
|
|
<!--<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">-->
|
|
|
|
|
<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">
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<div class="avatar-name">
|
|
|
|
|
<div class="avatar">
|
|
|
|
|
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="name">
|
|
|
|
|
<i><%= config.author %></i>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-12-18 22:56:58 +00:00
|
|
|
|
<div class="contents" id="nav-content">
|
|
|
|
|
<ul>
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
|
|
|
|
|
<a href="<%= url_for(config.home_dir || '/') %>">
|
2018-12-18 22:56:58 +00:00
|
|
|
|
<i class="iconfont icon-shouye1"></i>
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<span><%= __('nav.home') %></span>
|
2018-12-18 22:56:58 +00:00
|
|
|
|
</a>
|
|
|
|
|
</li>
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
|
|
|
|
|
<a href="<%= url_for(config.tag_dir) %>">
|
2018-12-18 22:56:58 +00:00
|
|
|
|
<i class="iconfont icon-biaoqian1"></i>
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<span><%= __('nav.tags') %></span>
|
2018-12-18 22:56:58 +00:00
|
|
|
|
</a>
|
|
|
|
|
</li>
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
|
|
|
|
|
<a href="<%= url_for(config.archive_dir) %>">
|
2018-12-18 22:56:58 +00:00
|
|
|
|
<i class="iconfont icon-guidang2"></i>
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<span><%= __('nav.archives') %></span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
|
|
|
|
|
<a href="<%= config.root %><%- 'about/' %>">
|
|
|
|
|
<i class="iconfont icon-guanyu2"></i>
|
|
|
|
|
<span><%= __('nav.about') %></span>
|
2018-12-18 22:56:58 +00:00
|
|
|
|
</a>
|
|
|
|
|
</li>
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<%if(config.search && config.search.path){%>
|
|
|
|
|
<li>
|
|
|
|
|
<a id="search">
|
|
|
|
|
<i class="iconfont icon-sousuo1"></i>
|
|
|
|
|
<span><%= __('nav.search') %></span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<% } %>
|
2018-12-18 22:56:58 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<%
|
|
|
|
|
if(is_post()){
|
|
|
|
|
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
|
|
|
|
|
%>
|
|
|
|
|
<%- partial('./toc', {item: page, index: false}) %>
|
|
|
|
|
<% } %>
|
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>
|
2018-12-22 03:41:03 +00:00
|
|
|
|
<input id="search-input"/>
|
|
|
|
|
<span id="begin-search"><%= __('search.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">
|
|
|
|
|
重定向国外网址至国内镜像
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="post-meta">
|
|
|
|
|
<span class="attr">Post:<span>2018-12-13 11:30:09</span></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="attr">Visit:<span id="busuanzi_value_page_pv"></span>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="post-content ">
|
|
|
|
|
<p>使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。</p>
|
|
|
|
|
<p>其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。</p>
|
|
|
|
|
<p>本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。</p>
|
|
|
|
|
<p>配置/sdcard/uweb/redirect.txt:<br>文件每一行格式为:<br>正则表达式:替换表达式</p>
|
|
|
|
|
<p>其中正则表达式以java语言规定为准。表达式中不能包含’:’。</p>
|
|
|
|
|
<p>例子文件内容如下:<br>android.com:android.google.cn</p>
|
|
|
|
|
<p>添加文件”国内镜像.js”至/sdcard/uweb/longclick:<br>文件内容如下:<br>//e:%s</p>
|
|
|
|
|
<p>其中”e:”为uweb特殊url协议,意为”edit”, 即”编辑”。当后面紧跟url网址的情况下会重定向网址。</p>
|
|
|
|
|
<p>重启uweb后长按链接弹出菜单选”国内镜像”,浏览器将访问网址的国内镜像。</p>
|
|
|
|
|
<p>更多重定向网址:<br>verycd.com:verycd.gdajie.com</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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 = ""
|
|
|
|
|
window.hexo_root = "/uWeb/"
|
|
|
|
|
window.isPost = true
|
|
|
|
|
</script>
|
|
|
|
|
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
|
|
|
|
|
<script src="/uWeb/js/index.js"></script>
|
|
|
|
|
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</html>
|