seo 问题:我的博客 sitemap.xml 应该放在哪里

发布于 2024-10-09 18:18:24 字数 586 浏览 0 评论 0原文

我们在主网址的子目录中有一个博客。 http://www.domain.com/blog/

该博客由 wordpress 运行,我们正在使用Google Sitemap Generator 用于创建 XML 文件。

我们在主 sitemap.xml 中有一个所有站点地图的索引,这会导致许多站点地图。

从 SEO 的角度来看,最好直接链接到博客目录下的站点地图: 例如 http://www.domian.com/blog/sitemap.xml

或者应该是执行 cron(每天)将文件复制到主域的目录: 例如 http://www.domain.com/sitemap_blog.xml

将从主链接链接与其他站点地图建立索引。

从 SEO 的角度来看,最好的方法是什么???

we have a blog in a sub-directory of the main url.
http://www.domain.com/blog/

the blog is run by wordpress and we are using Google Sitemap Generator to create the XML file.

We have an index of all of our sitemaps in the main sitemap.xml which leads to many sitemaps.

From an SEO standpoint would it be best to link directly to the sitemap that is under the blog directory:
e.g. http://www.domian.com/blog/sitemap.xml

or should be do a cron (daily) to copy the file to the main domain's directory:
e.g. http://www.domain.com/sitemap_blog.xml

which will be linked from the main index with the other sitemaps.

What is the best way from an SEO standpoint???

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云之铃。 2024-10-16 18:18:24

站点地图在哪里并不重要。您需要向搜索引擎注册其位置,以便能够找到它。但最重要的是使用以下行在 robots.txt 文件中提供指向站点地图位置的链接:

Sitemap: <sitemap_location>

您的 robots.txt 文件应位于域的根目录中。

It doesn't matter where the sitemap is. you will want to register its location with the search engines you want to be able to find it. The main thing though is to have a link to your sitemap location in the robots.txt file using the following line:

Sitemap: <sitemap_location>

Your robots.txt file should be in your domain's root.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文