URL转发

原理:iframe

代码:

<?php
if($_SERVER['HTTP_HOST']=="i.mansions.com.cn"){
    $html = <<<EOF
    <html>
    <head>
    <meta http-equiv="Content-Language" content="zh-CN">
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
    <title>标题</title>
    </head>
        <frameset framespacing="0" border="0" rows="0" frameborder="0">
        <frame name="main" src="你的目标网址" scrolling="auto" noresize>
        </frameset>
    </html>
EOF;
    echo $html;
}
?>

 

你可能感兴趣的:(url)