Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Site's on which I've worked have had a limited set of defined section homepages, add those manually to the sitemap (unless your CMS has a list of those top-level pages):
/home
/section1
/section2
...
/sectionN
They also had content types: videos, articles, games, etc. You want to get a list of every single item -- from your CMS or, in my case, Solr indexes generated from CMS. This is a huge list of:
This website http://create-site-map.com/ uses sitemapgen4j. You can easily write a script that uses it to generate and download the sitemap automatically periodically.
发布评论
评论(4)
我工作过的网站有一组有限的已定义部分主页,请将它们手动添加到站点地图(除非您的 CMS 具有这些顶级页面的列表):
它们还具有内容类型:视频、文章、游戏、您想要从您的 CMS 获取每个项目的列表,或者就我而言,从 CMS 生成的 Solr 索引。这是一个巨大的列表:
站点地图和站点地图索引的标记是 非常简单的 XML。
Site's on which I've worked have had a limited set of defined section homepages, add those manually to the sitemap (unless your CMS has a list of those top-level pages):
They also had content types: videos, articles, games, etc. You want to get a list of every single item -- from your CMS or, in my case, Solr indexes generated from CMS. This is a huge list of:
The markup for sitemaps and sitemap indexes is pretty simple XML.
我们最终按照谷歌的建议使用了名为 redfin.sitemapgenerator 的 api
We have finally gone as per google's suggestion and used the api's called redfin.sitemapgenerator
如果可以从数据源检索您的内容,则通过批处理作业(Spring Batch + sitemapgen4j)生成站点地图可能适合您。
有关此博客文章的更多信息:
http://www.jramoyo.com/2013/02 /generate-sitemaps-using-spring-batch.html
If your content can be retrieved from a datasource, generating the sitemap through batchjobs (Spring Batch + sitemapgen4j) might work for you.
More information on this blog post:
http://www.jramoyo.com/2013/02/generating-sitemaps-using-spring-batch.html
此网站 http://create-site-map.com/ 使用 sitemapgen4j。您可以轻松编写一个脚本,使用它定期自动生成和下载站点地图。
This website http://create-site-map.com/ uses sitemapgen4j. You can easily write a script that uses it to generate and download the sitemap automatically periodically.