1. HTML 的轉址方法:
 
在 HTML 網頁的 </head> 前加入以下 HMTL 碼,網頁就會自動轉址。
 
<meta http-equiv="refresh" content="0;url=http://url.com" />其中 content=... 中的 0 是指 0 秒後自動重新整理,並轉址到 "http://url.com" 這個 URL。
 

2. Javascript 的轉址方法:
 
在 HTML 網頁中原則上是任一地方加入以下 JavaScript 網頁就會轉址。但放在網頁 HTML 碼的開始較有效率(也較有意義)。
 
<script>document.location.href="http://url.com";</script>
3. PHP 的轉址方法:
 
<?php    header('Location: http://murl.com');    exit;?>
============================================================================
a.
----------------------------------------
<html><head>
<meta http-equiv="Refresh" content="0;URL=url.com">
</head></html>
----------------------------------------
b.
---------------------------------------
<html>
<body onload=
"window.open('url.com.pl','_top')">
</body>
</html>
----------------------------------------
 
以下是其它寫法 (非Html)
----------------------------------------
c. PHP header 寫法
---------------------------------------
header("Location: url.com.pl");
---------------------------------------
d. JavaScript 寫法
---------------------------------------
<script language="Javascript">
<!--
if (screen.width == "800")
{
location="fgps/800/index.php?link=index"
}
else
{
location="fgps/1024/index.php?link=index"
}
//-->
</script>