时间:2019-12-08加入收藏
<?php
$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$url = str_replace('baidu.cn', 'baidu.com', $url);
header('location:'.$url,true,301);
?>
<!DOCTYPE html>
<html>
<head> <title>泛解析二级域名批量跳转</title>
</head>
<body>
<script type="text/javascript"> var url = 'http://www.baidu.cn/1.html'; url = url.replace(/baidu+\.cn/g,'baidu.com'); window.location.href = url;
</script>
</body>
</html>
TGA: