https://tzuhsiang.com/webmaster/url-html-javascript-php/
在 HTML 網頁的 </head> 前加入以下 HMTL 碼,網頁就會自動轉址。
<meta http-equiv="refresh" content="0;url=https://tzuhsiang.com" />
其中 content=… 中的 0 是指 0 秒後自動重新整理,並轉址到 “https://tzuhsiang.com” 這個 URL。
Javascript 的轉址
在 HTML 網頁中原則上是任一地方加入以下 JavaScript 網頁就會轉址。但放在網頁 HTML 碼的開始較有效率(也較有意義)。
<script>document.location.href="https://tzuhsiang.com";</script>
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- http://www.culturemark.com/redirectURL/
window.location="http://tcofficial.tcscope.com/";
// -->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>新增網?1</title>
</head>
<body>
</body>
</html>
https://tzuhsiang.com/webmaster/url-html-javascript-php/
<meta http-equiv=”refresh” content=”0;url=https://tzuhsiang.com” />