Google 新闻站点地图
Google News sitemap
我 运行 一个建立在 wordpress 中的板球网站,已被 Google 新闻接受,但我需要通过网站管理员工具提交 XML 站点地图才能显示我的文章.
我创建了一个非常简单的站点地图(参见下面的代码),我希望它能解决问题,但问题是:
** 上传到我的文件目录哪里?**
你会想的很简单,但很多人似乎使用插件来生成带有 wordpress 站点的站点地图,而我很少编辑文件。
我想要的结果是:http://cricketyorkshire.com/newssitemap.xml
谢谢!
--
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
<url>
<loc>http://www.example.org/business/article55.html</loc>
<news:news>
<news:publication>
<news:name>Cricket Yorkshire</news:name>
<news:language>en</news:language>
</news:publication>
<news:genres>PressRelease, Blog</news:genres>
<news:publication_date>2015/07/16</news:publication_date>
<news:title>How does the month of Ramadan affect cricketers? </news:title>
<news:keywords>cricket, ramadan, religion, sports, yorkshire</news:keywords>
</news:news>
</url>
</urlset>
如果您有此文件作为 xml 文件,只需将其上传到 WP 安装的根目录,这是您通常也可以找到 wp-config 的顶层。从那里您可以直接在浏览器中访问它,类似于 WMT 和机器人程序所做的。
站点地图可以在网站的任何地方,这真的没关系,但最方便的地方可能是您网站的根目录,如其他人建议的那样,在您的 wp-config.php 旁边。
Google 每次发表文章都应该更新新闻站点地图,否则没有意义。此外,如果您不提交始终保持最新的站点地图,我们将很难发现您的内容,如果您的 URL 中没有数字,我们甚至可能根本无法发现它们 (不像日期)
Display a three-digit number. The URL for each article must contain a unique number consisting of at least three digits. For example, we can't crawl an article with this URL: http://www.google.com/news/article23.html
. We can, however, crawl an article with this URL: http://www.google.com/news/article234.html
. Keep in mind that if the only number in the article consists of an isolated four-digit number that starts with 199 or 200, we won't be able to crawl it. Please note that this rule is waived with News sitemaps.
如果您使用的是 wordpress,则只需安装一个插件即可为您生成站点地图,我创建了这样的插件,它对很多人都非常有用。要查看所有 google news sitemap
相关插件,请参阅
https://wordpress.org/plugins/search.php?type=term&q=google+news+sitemap
我 运行 一个建立在 wordpress 中的板球网站,已被 Google 新闻接受,但我需要通过网站管理员工具提交 XML 站点地图才能显示我的文章.
我创建了一个非常简单的站点地图(参见下面的代码),我希望它能解决问题,但问题是:
** 上传到我的文件目录哪里?**
你会想的很简单,但很多人似乎使用插件来生成带有 wordpress 站点的站点地图,而我很少编辑文件。
我想要的结果是:http://cricketyorkshire.com/newssitemap.xml
谢谢!
--
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
<url>
<loc>http://www.example.org/business/article55.html</loc>
<news:news>
<news:publication>
<news:name>Cricket Yorkshire</news:name>
<news:language>en</news:language>
</news:publication>
<news:genres>PressRelease, Blog</news:genres>
<news:publication_date>2015/07/16</news:publication_date>
<news:title>How does the month of Ramadan affect cricketers? </news:title>
<news:keywords>cricket, ramadan, religion, sports, yorkshire</news:keywords>
</news:news>
</url>
</urlset>
如果您有此文件作为 xml 文件,只需将其上传到 WP 安装的根目录,这是您通常也可以找到 wp-config 的顶层。从那里您可以直接在浏览器中访问它,类似于 WMT 和机器人程序所做的。
站点地图可以在网站的任何地方,这真的没关系,但最方便的地方可能是您网站的根目录,如其他人建议的那样,在您的 wp-config.php 旁边。
Google 每次发表文章都应该更新新闻站点地图,否则没有意义。此外,如果您不提交始终保持最新的站点地图,我们将很难发现您的内容,如果您的 URL 中没有数字,我们甚至可能根本无法发现它们 (不像日期)
Display a three-digit number. The URL for each article must contain a unique number consisting of at least three digits. For example, we can't crawl an article with this URL:
http://www.google.com/news/article23.html
. We can, however, crawl an article with this URL:http://www.google.com/news/article234.html
. Keep in mind that if the only number in the article consists of an isolated four-digit number that starts with 199 or 200, we won't be able to crawl it. Please note that this rule is waived with News sitemaps.
如果您使用的是 wordpress,则只需安装一个插件即可为您生成站点地图,我创建了这样的插件,它对很多人都非常有用。要查看所有 google news sitemap
相关插件,请参阅
https://wordpress.org/plugins/search.php?type=term&q=google+news+sitemap