sitemap 相关问题

站点地图是网站管理员向搜索引擎通知其网站上可用于抓取的网页的简便方法。站点地图协议格式在http://www.sitemaps.org/protocol.html中定义

如果我的排名数学站点地图中缺少一些重要的网址,我该怎么办?

我的一些产品网址未显示在站点地图上。我检查过它们没有设置为 noindex,并且我已经清除了我的站点缓存。我还检查了我的排名数学设置,但我仍然没有...

回答 1 投票 0

使用@nuxtjs/sitemap动态生成站点地图

我使用@nuxtjs/sitemap作为我的站点地图生成器,一些路线是由ajax给出的。 每当有人访问 /sitemap.xml 时,我都需要它拥有最新的 api 数据,是否可以用这个 li 来做到这一点...

回答 1 投票 0

带有 Google XML 站点地图插件的 WordPress 站点地图

我安装了该插件,正如预期的那样,站点地图应该在domainname.com/sitemap.xml 上可见。它是可见的,但如图所示。我没有帖子,只有页面。页面列表...

回答 4 投票 0

公共目录中的 React sitemap.xml 文件在构建后未显示

我有一个脚本可以在公共目录中生成 sitemap.xml 文件。开发时可以在 localhost:3000/sitemap.xml 中访问它。但是当它进行构建时,我无法访问该文件......

回答 3 投票 0

如何通过API使用NextJs在前端获取strapi-plugin-sitemap创建的sitemap.xml文件?

我在 Strapi 中使用 Strapi-plugin-sitemap 创建了站点地图。它在 Strapi 端工作正常,但我需要将它放在前端。 这是包 - https://www.npmjs.com/package/strapi-

回答 2 投票 0

Next.js 14 多语言站点地图生成

我的 Next.js 14(App Router)网站具有多语言支持,需要使用以下命令生成 sitemap.xml: 我的 Next.js 14(App Router)网站具有多语言支持,需要使用以下命令生成 sitemap.xml: <xhtml:link rel="alternate" hreflang="YOUR_LOCALE" href="YOUR_LINK" /> 如 Google 在以下示例中所示: https://developers.google.com/search/docs/specialty/international/localized-versions#sitemap 怎么可能做到这一点? 在 Next.js 14 (App Router) 站点地图生成中,您只能指定 4 个与本地化无关的参数: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap 或者你可以手动编写sitemap.xml,但是该网站有超过2000个产品页面,手动编写是疯狂的。 也许有办法自己构建一个string? (getServerSideProps - App Router 不支持) https://github.com/vercel/next.js/commit/e4cd547a505c8380cbf010a78f1e2e3ade0f2307 看来这个功能只适用于nextjs 14.2.0或更高版本!

回答 1 投票 0

Django sitemap.xml 适用于数百万产品

我们有大量的产品。约5000万件商品 在 Django 中生成站点地图的最佳方法是什么? 目前我们通过以下方式生成它们: 站点地图.py 类 BookSitemap1(Sitema...

回答 2 投票 0

使用 Wordpress 移动到 https 后,搜索控制台中出现空站点地图错误

我使用的是Wordpress 4.8.1,启用了Yoast SEO sitemap.xml。我最近转向了 https。 将站点地图提交到搜索控制台后,它显示站点地图为空且不包含网址。但我...

回答 1 投票 0

Wagtail 2.4 - get_sitemap_urls() 需要 1 个位置参数,但给出了 2 个

在升级到 Wagtail 2.4 之前,我曾经有一个可用的站点地图。我已经根据此处的文档升级了我的网站:http://docs.wagtail.io/en/v2.4/reference/contrib/sitemaps.html 但...

回答 2 投票 0

SPA React 项目中是否可以生成 sitemap.xml?

我在React 18.2.0中有SPA,我想生成sitemap.xml。我尝试过 React Router Sitemap 包,但它不适用于最新版本的 React。我也希望它生成所有su...

回答 1 投票 0

如果robots.txt指向子文件夹中的站点地图,站点地图可以指定根目录中的URL吗?

假设我的根目录 http://domain.com/robots.txt 中有一个 robots.txt 文件,它在子文件夹中指定一个站点地图,该子文件夹具有指向站点地图索引的单个声明: 机器人.txt 网站地图:

回答 1 投票 0

Cakephp 插件生成站点地图

我正在使用 Cakephp 2.4.3 。我读过“有一些 CakePHP 插件可以为您生成站点地图。这样您的 sitemap.xml 文件将根据需要动态创建,并且始终...

回答 1 投票 0

如何检测亚马逊站点地图

我正在尝试从 amazon.com 抓取一些产品,但我在 robots.txt 中找不到它 我试过 amazon.com/sitemap.xml amazon.com/sitemap.xml.gz amazon.com/sitemap1.xml.gz amazon.com/sitema...

回答 4 投票 0

Django sitemap.xml 显示纯文本

我已经按照Django 2.0(暂时无法升级)官方文档添加了站点地图。 当访问我的生产站点时,我得到了所有带有日期的正确链接,但都是纯文本形式,没有 xml

回答 1 投票 0

如何提交大量子域的站点地图以及为每个用户注册到谷歌搜索控制台创建的站点地图?

我有一个多租户应用程序。每次用户注册时,都会在子域中创建一个站点。 假设该网站是 https://example.com。当用户使用用户名 foo 注册时,https://foo.exampl...

回答 1 投票 0

XML 站点地图无法与 Google Search Console 配合使用..?

我有一个 XML 站点地图,位于 https://store.usbswiper.com/sitemap_index.xml,如您所见,加载得很好。 但是,Google Search Console 告诉我它无法获取站点地图。 当我...

回答 2 投票 0

如何在 Nextjs 14 中制作动态站点地图?

我在 nextjs 14 中为我的博客文章网站提供了这个动态站点地图的代码片段。这在开发中工作得很好,但在构建或生产中,即使...

回答 1 投票 0

为什么 Google Search Console 不喜欢我的 C# ASP.NET Core MVC 路由?

我刚刚将 C# ASP.NET Core 8.0 MVC Web 应用程序部署到 Azure。 我有一个 Sitemap.xml 文件,您可以在此处看到: 我刚刚将 C# ASP.NET Core 8.0 MVC Web 应用程序部署到 Azure。 我有一个 Sitemap.xml 文件,您可以在这里看到: <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>Home/Index</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>About/Index</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>About/Guide</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/About/FAQs</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/About/Roadmap</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/About/Terms</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/About/Privacy</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/About/GDPR</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/Support/ContactUs</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/Support/Troubleshooting</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/Blog</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/rss</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/Account/SignUp</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/Account/LogIn</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/Account/ForgotPassword</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>/</loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc> /blog/Real-time-UK-FIRE-Calculator-Release-Version-1 </loc> <lastmod>2024-01-30</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> </urlset> 我向 Google Search Console 提交了我的 Sitemap.xml 网址,以开始获取网站索引,却收到以下错误列表,其中 Google 表示他们不喜欢“/”或“关于/指南”等网址。 Sitemap can be read, but has errors Invalid URL 17 instances This is not a valid URL. Please correct it and resubmit. Examples URL: Home/Index Line 3 Parent tag: url Tag: loc URL: About/Index Line 9 Parent tag: url Tag: loc URL: About/Guide Line 15 Parent tag: url Tag: loc 有什么想法吗?或者我应该做什么? 非常感谢您的帮助,谢谢。 您应该将 XML 站点地图修改为如下所示: <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url><loc>https://example.com/Home/</loc></url> <url><loc>https://example.com/About/</loc></url> <url><loc>https://example.com/About/Guide</loc></url> ... </urlset> <loc> 元素应包含完全限定的 URL(带有 https:// 和域名) Index 不应该永远出现在您的网址中。索引文档为目录提供动力。它们应该在 URL 中隐藏,仅在 Web 服务器后端使用。 Google 会忽略 lastmod、changefreq 和 priority,因此您应该忽略它们。特别是如果您没有准确设置它们。

回答 1 投票 0

并非所有语言环境都在 docusaurus 网站的 sitemap.xml 中生成

我有一个由docusaurus 2.0.0-beta.18制作的网站。最初是英文的,后来我用i18添加了很多页面的中文版本。所以像 https://www.mywebsite.com/zh-CN/docs/a-page 这样的页面显示...

回答 1 投票 0

如何处理站点地图上的多种格式的图像?即 jpg webp avif jxl

我不敢相信这个问题没有被问过,或者网络上似乎没有可用的信息,因为许多大牌都在推动新格式作为发展方向。 设想: 我...

回答 2 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.