Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dns blogspot.com在另一个域上_Dns_Blogspot - Fatal编程技术网

Dns blogspot.com在另一个域上

Dns blogspot.com在另一个域上,dns,blogspot,Dns,Blogspot,我有blogspot博客,我想将域名www.xyz.blogspot.com更改为我的域名www.xyz.com 我知道我的域名,但现在当我去我的博客我有这个错误 目录没有索引文件 禁止在没有索引文件的情况下浏览此网站或目录。 如果你是网站的站长,你可以通过 使用以下名称之一创建默认HTML页面: index.html index.htm default.htm default.htm home.html home.chtml 当您注册域时,您应该能够修改它指向的内容。您应该能够选择CNAME,

我有blogspot博客,我想将域名
www.xyz.blogspot.com
更改为我的域名
www.xyz.com
我知道我的域名,但现在当我去我的博客我有这个错误

目录没有索引文件

禁止在没有索引文件的情况下浏览此网站或目录。 如果你是网站的站长,你可以通过 使用以下名称之一创建默认HTML页面:

index.html index.htm default.htm default.htm home.html home.chtml


当您注册域时,您应该能够修改它指向的内容。您应该能够选择CNAME,然后在
www.xyz.blogspot.com
中写入。这将基本上将您的域链接到您的
www.xyz.blogspot.com
站点,用户只会看到
www.xyz.com

另一个解决方案是添加index.php,如下所示:

<?php
  header("Location: http://www.xyz.blogspot.com");
?>


但这只会将用户重定向到旧页面,因此将显示
http://www.xyz.blogspot.com
在地址栏中。

谢谢simon,我将尝试将CNAME修改为
www.xyz.blogspot.com
@tito11如果有帮助,请不要忘记投票并接受答案。