把不带www的域名301到带www的域名,例如
xunruicms.com 定向 到 www.gsidc.net.cn
打开index.php
$host = strtolower($_SERVER['HTTP_HOST']); if ($host == 'xunruicms.com') { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.gsidc.net.cn");exit; }
把不带www的域名301到带www的域名,例如
xunruicms.com 定向 到 www.gsidc.net.cn
打开index.php
$host = strtolower($_SERVER['HTTP_HOST']); if ($host == 'xunruicms.com') { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.gsidc.net.cn");exit; }
Copyright © 2006~2036 兰州维动网络技术服务有限公司 版权所有