二級域名隱藏轉向

<?php
$url=$_SERVER['SERVER_NAME'];
$dns = explode('.',$url);
$ddns = $dns[0];
if ($ddns != "www" && $ddns != "")    
{
//echo $ddns;
//exit;
?>

<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<META CONTENT="text/html; CHARSET=UTF-8" HTTP-EQUIV="Content-Type">
<TITLE></TITLE>
</HEAD>

<frameset frameborder="0" framespacing="0" scrolling="no" border="0" marginheight="0" marginwidth="0" rows="0,*">
<frame scrolling="NO" noresize="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" target="main" name="main" SRC="about:blank">

<frame scrolling="yes" noresize="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" target="main" name="main" src="http://www.XX.com/<?php echo $ddns ?>/1.html">

<noframes>
<body>
<p>This page uses frames, but your browser doesn''t support them.</p></body>
</noframes>
</frameset>
</HTML>
<?php } ?>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章