<?php if(preg_match("/guyin.org/i",$SERVER['HTTP_REFERER'])>0)
header("location:".$SERVER['QUERY_STRING']); else header("Location: http://guyin.org"); ?>
使用方法:例如亲的域名是example.com,那么请将guyin换成example,org换成com,下面的http://guyin.org换成http://example.com
<?php if(preg_match("/guyin.org/i",$SERVER['HTTP_REFERER'])>0)
header("location:".$SERVER['QUERY_STRING']); else header("Location: http://guyin.org"); ?>
使用方法:例如亲的域名是example.com,那么请将guyin换成example,org换成com,下面的http://guyin.org换成http://example.com
暂无评论