大网数据广告活动
网站运营与故障问答

Sitemap: Should I dynamically update sitemap for dynamic content or create a page containing all the dynamic links

· 52CE 我爱测

Say i have the following route http://<my-domain>/{category}/subjects/{id}/{title} the ones in the brackets are dynamic, I'm struggling with what is better or any better way to let google crawl through all these dynamic links App…

问题原文

原帖链接 · Ali Kleit · CC BY-SA 4.0

Say i have the following route http://<my-domain>/{category}/subjects/{id}/{title}

the ones in the brackets are dynamic, I'm struggling with what is better or any better way to let google crawl through all these dynamic links

Approach 1: manually doing the job by removing or adding the record to site map and updating <lastmod>

Approach 2: create a page that includes all those links and reference that page in sitemap.xml

The second approach can be generated as a plain html file which is generated from the server app. Or, a simple webform aspx page that dynamically generates those links without having to create an html file.

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 4.0

You should create an XML sitemap and dynamically add new dynamic URLs to it. There is no need to use lastmod in an XML sitemap. Google says they ignore lastmod because few sites keep it up to date. Googlebot will notice any new URLs in the XML sitemap and will come crawl them whether on to they have a lastmod specified.

You should not create a single page that links to all your dynamic URLs. HTML sitemaps don't work well for SEO anymore. XML sitemaps work fine for getting your content crawled.

When you have an XML sitemap Googlebot will come crawl all your content. However, it is likely that most of the URLs in it won't get indexed. If any of them do get indexed, they won't rank well. This is called The Sitemap Paradox. To get most of your dynamic URLs indexed and ranking, they need to link to each other. That is why this site has the "Related Questions" section on each question page.

Your home page should link to a few of your best and most recent URLs. Those URLs will in turn pass some of that link juice on to other dynamic URLs.

Once some of your URLs get external links, the link juice from external links will be passed further to other dynamic URLs as well.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2020-06-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。