There are three methods for reference.
1. Use http header information
That is, use the PHP header function. The header function in PHP is used to send control commands that should have been specified by the HTTP protocol to the browser through the Web server, such as declaring the type of returned information ("context-type: xxx/XXX "), page attributes (" no cache "," expire "), and so on.
To redirect an HTTP header to another page, follow these steps:
<?
Header ("Location: http://www.baidu.com ");
?>
Note that "localtion:" is followed by a space.
Ii. Mark with HTML
The HTML Tag is the refresh tag of Meta, for example:
<? If (! Isset ($ URL) Exit;?>
<HTML>
<Head>
<Meta HTTP-EQUIV = "refresh" content = "5; url = <? Echo $ URL;?>
</Head>
<Body>
</Body>
</Html>
Iii. Implement with scripts
Example:
<?
$ Url = "http://www.baidu.com ";
Echo "<SCRIPT type =" text/JavaScript "> ";
Echo "location. href = '$ url '";
Echo "</SCRIPT> ";
?>