今天討論與交流示範的是怎樣把A 網址轉到B 網站,A 網址會連到B 網站,同時A 和B 網站都是有網頁呈現的呢!
原本狀況為
A 網址 → 出現乃A 網站
B 網址 → 出現乃B 網站
舉例說:A 網站目前已經不使用,但想將A 網址轉址到B 網站
方式一:非框架轉址:
到A 網站新增一個Index.htm 索引首頁:
<HTML><head><meta http-equiv="Refresh" content="5;url=http://B 網站的網址"></head><body></body></HTML>
方式二:框架轉址( 轉址到B 網站以後,A 網址不會變回B 網址) :
到A 網站新增一個Index.htm 索引首頁:
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
<title> 網站標題!</title>
</head>
<frameset rows="*,1" framespacing="0" border="0" frameborder="0">
<frame name="main" src="http://B 網站的網址" marginwidth="10" marginheight ="15" scrolling="auto" noresize>
<frame name="footer" scrolling="no" noresize target="main" marginwidth="0" marginheight="0">
<noframes>
<body>
<p> 此網頁使用框架,但是您的瀏覽器不支援框架。</p>
</body>
</noframes>
</frameset>
</html>