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

TGA: