0%

Web站点配置隐式URL跳转

背景

当我们需要通过自己的域名连接到外部的站点时,DNS 解析的隐式 URL跳转是一个较好的选择。但由于使用了默认的 iframe代码文本,无法自定义站点的标题和图标,此时可以使用自定义的站点文件了实现效果。

站点文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<head>
<meta charset="utf-8" />
<title>I am site title</title>
<!--网页标题左侧显示-->
<link rel="icon" href="site.ico" type="image/x-icon">
<!--收藏夹显示图标-->
<link rel="shortcut icon" href="site.ico" type="image/x-icon">
</head>
<html>
<frameset rows="100%">
<frame src="https://www.rainlf.com"/>
<noframes><a href="https://www.rainlf.com">Click here</a></noframes>
</frameset>
</html>