域名频道帮助中心
我们一直在努力

Cname一个域名跳转到另一个域名

从一个域名跳转到另一个域名 Cname
app.littlewindy.com 到www.littlewindy.com

1.腾讯云加入Cname解析
2.服务器 虚拟主机加入
<VirtualHost *:80>
DocumentRoot “c:/wamp/www/tiao”
ServerName app.littlewindy.com
Options Indexes FollowSymLinks
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

网页跳转

3.在www文件夹建立tiao文件夹,建立indx.php里面写

//<meta http-equiv=”refresh” content=”3; url=http://www.littlewindy.com”>
<?php
header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: http://www.littlewindy.com”);
exit();
?>

赞(0)
分享到: 更多 (0)

中国专业的网站域名及网站空间提供商

买域名买空间