Linux 软件免费装
Banner图

XML Sitemap & Google News

开发者 RavanH
更新时间 2024年5月8日 05:44
捐献地址: 去捐款
PHP版本: 5.6 及以上
WordPress版本: 6.5.2
版权: GPLv2 or later
版权网址: 版权信息

标签

robots news xml sitemap Google News

下载

5.3.4 5.4.2 4.5.1 4.6.3 4.8.3 4.9.4 5.0.7 5.1 5.1.1 5.2 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.4.4 2.0 3.2 3.3 3.4 3.5 3.6.1 3.7.4 4.2.3 5.1.2 3.0 3.9.2 5.3.2 5.3.3 3.9.3 5.4.3 5.4.5 4.0 4.0.1 2.1 3.8.8 4.1.4 5.3.5 5.3.6 5.4 5.4.1 4.7.5 5.4.6 1.0 4.3.2 4.4.1 5.4.9

详情介绍:

This plugin dynamically creates dynamic feeds that comply with the XML Sitemap and the Google News Sitemap protocol. Multisite, Polylang and WPML compatible and there are no static files created. There are options to control which sitemaps are enabled, which Post Types and archive pages (like taxonomy terms and author pages) are included, how Priority and Lastmod are calculated and a possibility to set additional robots.txt rules from within the WordPress admin. The main advantage of this plugin over other XML Sitemap plugins is simplicity. No need to change file or folder permissions, move files or spend time tweaking difficult plugin options. 你或者你所属的多站点网络的所有者,不必为其它大多数 XML 站点地图插件那般复杂的设置而烦心。本插件的默认设置已足以应对大多数情况。 An XML Sitemap Index becomes instantly available on yourblog.url/sitemap.xml (or yourblog.url/?feed=sitemap if you're not using a 'fancy' permalink structure) containing references to posts and pages by default, ready for indexing by search engines like Google, Bing, Yahoo, Yandex, Baidu, AOL and Ask. When the Google News Sitemap is activated, it will become available on yourblog.url/sitemap-news.xml (or yourblog.url/?feed=sitemap-news), ready for indexing by Google News. Both are automatically referenced in the dynamically created robots.txt on yourblog.url/robots.txt to tell search engines where to find your XML Sitemaps. 请阅读 FAQ 来了解如何将从谷歌新闻中获取你的文章列表。 Compatible with caching solutions like CloudFlare, WP Super Cache, W3 Total Cache and Quick Cache that cache feeds, allowing a faster serving to the impatient (when hungry) spider. NOTES:
  1. If you do not use fancy URL's or you have WordPress installed in a subdirectory, a dynamic robots.txt will NOT be generated. You'll have to create your own and upload it to your site root! See FAQ's.
  2. On large sites, it is advised to use a good caching plugin like WP Super Cache, Quick Cache, W3 Total Cache or another to improve your site and sitemap performance.
功能 XML Sitemap Google News Sitemap Pro Features Google News Advanced 隐私政策 / GDPR 本插件不会收集任何用户或来访者数据,也不会配置浏览器 Cookies。使用本插件不会在任何方面对你的网站的隐私政策造成影响。 Data that is published An XML Sitemap index, referencing other sitemaps containing your web site's public post URLs of selected post types that are already public, along with their last modification date and associated image URLs, and any selected public archive URLs. A Google News Sitemap containing your web site's public and recent (last 48 hours) URLs of selected news post type, along with their publication time stamp and associated image URL. An author sitemap can be included, which will contain links to author archive pages. These urls contain author/user slugs, and the author archives can contain author bio information. If you wish to keep this out of public domain, then deactivate the author sitemap and use an SEO plugin to add noindex headers. Data that is transmitted Data actively transmitted to search engines is your sitemap location and time of publication. This happens upon each post publication when at least one of the Ping options on Settings > Writing is enabled. In this case, the selected search engines are alerted of the location and updated state of your sitemap. 如何贡献 If you're happy with this plugin as it is, please consider writing a quick rating or helping other users out on the support forum. If you wish to help build this plugin, you're very welcome to translate it into your language or contribute code on Github. 致谢 XML Sitemap Feed(现 XML Sitemap & Google News)插件最初基于由 Patrick Chia 编写的 Standard XML Sitemap Generator 插件进行开发。自那时以来,本插件已历经完全重构并在多个方面有所扩展。

安装:

Wordpress I. If you have been using another XML Sitemap plugin before, check your site root and remove any created sitemap.xml, sitemap-news.xml and (if you're not managing this one manually) robots.txt files that remained there. II. Install plugin by: Quick installation via Covered Web Services ! … 或者 … Search for "xml sitemap feed" and install with that slick Plugins > Add New admin page. … OR … 依照如下步骤:
  1. 下载档案
  2. Upload the zip file via the Plugins > Add New > Upload page … OR … unpack and upload with your favourite FTP client to the /plugins/ folder.
III. Activate the plugin on the Plugins page. 搞定!现在你可以通过浏览器或任何在线 XML 站点地图验证器访问 yourblog.tld/sitemap.xml 来检查你的闪闪发亮的全新 XML 站点地图。你可能同时也想要检查你的站点地图是否已收录于你的 yourblogurl.tld/robots.txt 文件中,别忘了。 WordPress 3+ 多站点模式 Same as above but do a Network Activate to make a XML sitemap available for each site on your network. Installed alongside WordPress MU Sitewide Tags Pages, XML Sitemap Feed will not create a sitemap.xml nor change robots.txt for any tag blogs. This is done deliberately because they would be full of links outside the tags blogs own domain and subsequently ignored (or worse: penalised) by Google. 卸载 Upon uninstalling the plugin from the Admin > Plugins page, plugin options and meta data will be cleared from the database. See notes in the uninstall.php file. On multisite, the uninstall.php can loop through all sites in the network to perform the uninstalltion process for each site. However, this does not scale for large networks so it only does a per-site uninstallation when define('XMLSF_MULTISITE_UNINSTALL', true); is explicitly set in wp-config.php.

屏幕截图:

  • 搜索引擎所看到的 XML 站点地图源代码。

升级注意事项:

5.4.9 Security fix: Unauthenticated file inclusion.

常见问题:

插件设置在哪里?

On Settings > Reading you can enable the XML Sitemap Index and (if needed) the Google News Sitemap. There is also an Additional robots.txt rules field. Once a sitemap is enabled, its options can be found on Settings > XML Sitemap or on Settings > Google News. Ping settings can be found on Settings > Writing.

我该如何获得谷歌新闻列出的我的最新文章?

Go to Suggest News Content for Google News and submit your website info as detailed as possible there. Give them the URL(s) of your fresh new Google News Sitemap in the text field 'Other' at the bottom. You will also want to add the sitemap to your Google Search Console account to check its validity and performance. Create an account if you don't have one yet.

我可以人工干预优先级与 changfreq 数值吗?

You can find default settings for Priority on Settings > XML Sitemap. A fixed priority can be set on a post by post basis too. 由于 Google 已不再将其纳入考虑,自 4.9 版本起,弃用 Changefreq。

我需要向搜索引擎提交站点地图吗?

不需要。在正常情况下,你的网站将在你发觉之前便被主流搜索引擎索引完毕。搜索引擎将会查看 Robots.txt 文件并(在本插件激活的情况下)找到指向你的博客的 XML 站点地图的指针。搜索引擎将会定期返回以确认你的站点是否更新了任何内容。 NOTE: If you have a server without rewrite rules, use your blog without fancy URLs (meaning, you have WordPress Permalinks set to the old default value) or have it installed in a subdirectory, then read Do I need to change my robots.txt for more instructions.

这个插件会通知(ping)搜索引擎吗?

Google & Bing are no longer accepting sitemap pings.

我需要修改我的 Robots.txt 文件吗?

在一般情况下,如果你的站点根目录下没有一份静态的 robots.txt 文件,那么站点地图的地址将自动添加进由 WordPress 动态生成的 robots.txt 文件中。 If you use a static robots.txt file in your website root, you will need to open it in a text editor. If there is already a line with Sitemap: http://yourblogurl.tld/sitemap.xml you can just leave it like it is. But if there is no sitemap referrence there, add it (adapted to your site url) to make search engines find your XML Sitemap. Or if you have WP installed in a subdirectory, on a server without rewrite_rules or if you do not use fancy URLs in your Permalink structure settings. In these cases, WordPress will need a little help in getting ready for XML Sitemap indexing. Read on in the WordPress section for more.

我的博客采用的 WordPress 系统安装在一个子目录下。这是否会造成什么改变?

这取决于你的 index.php 与 .htaccess 文件被安装到何处。如果它们都被放置在根目录下,同时其它余下的 WP 文件都被放置在子目录下,那么你的站点便可以通过你的域名直接访问,不需要再进行其它操作。插件应当开箱即用。 But if the index.php is together with your wp-config.php and all other WP files in a subdir, meaning your blog is only accessible via that subdir, you need to manage your own robots.txt file in your domain root. It has to be in the root (!) and needs a line starting with Sitemap: followed by the full URL to the sitemap feed provided by XML Sitemap Feed plugin. Like: Sitemap: http://yourblogurl.tld/subdir/sitemap.xml 如果你业已拥有一个写有其它站点地图地址的 Robots.txt 文件,只需在该地址上方或下方添加一行全线。

我需要配置友好(Facny)永久链接结构吗?

并非如此。虽然我仍会建议你采用任何一种更好的永久链接结构以促进更便利的索引。或许你不能够(或是不愿意)去修改它们,即使在此情况下,你依旧可以使用本插件: 检查链接 yourblog.url/?feed=sitemap 是否提供了一个订阅源。现在手动向你的网站根目录下保存的你自己的 Robots.txt 文件中上传如下字段: ` Sitemap: http://yourblog.url/?feed=sitemap User-agent: * Allow: / ` You can also choose to notify major search engines of your new XML sitemap manually. Start with getting a Google Search Console account and submit your sitemap for the first time from there to enable tracking of sitemap downloads by Google! or head over to XML-Sitemaps.com and enter your sites sitemap URL.

我可以修改站点地图的名称或链接吗?

No. If you have fancy URL's turned ON in WordPress (Permalinks), the sitemap url is yourblogurl.tld/sitemap.xml but if you have the Permalink Default option set the feed is only available via yourblog.url/?feed=sitemap.

在我的网站根目录下找不到 sitemap.xml 文件!

实际上没有任何实在文件会被创建。站点地图是如同订阅源(feed)一般动态生成的。

我在网站根目录下找到了 sitemap.xml 文件但是看起来它没有得到更新!

你可能在使用本插件之前使用了其他的 XML 站点地图插件,你正在查看 sitemap.xml 文件就是由其所创建的。删除该文件并让本插件动态生成站点地图,一如生成订阅源那般。本插件不会创建任何实际的文件。 如果实际情况并非如此,你可能正在使用缓存插件,或你的浏览器没有获取最新的订阅源输出。请进行检查。

我使用了缓存插件但是站点地图没有被缓存。

一些缓存插件会提供是否对订阅源与站点地图进行缓存的选项。请确保它们处于启用状态。 Frederick Townes, developer of W3 Total Cache, says: "There's a checkbox option on the page cache settings tab to cache feeds. They will expire according to the expires field value on the browser cache setting for HTML." 谷歌新闻地图是以不被缓存为出发点而设计的。

当我试图打开站点地图或 Robots.txt 时遭遇错误!

The absolute first thing you need to check is your blogs privacy settings. Go to Settings > Privacy and make sure you are allowing search engines to index your site. If they are blocked, your sitemap will not be available. Then, you might want to make sure that there is at least ONE post published. WordPress is known to send 404 status headers with feed requests when there are NO posts. Even though the plugin tries to prevent that, in some cases the wrong status header will get sent anyway and Google Search Console will report a vague message like: We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit. 如果这些措施都不能解决本问题,请确认下面这些错误及其各自的解决方案是否存在或有效: 404 page instead of my sitemap.xml Try to refresh the Permalink structure in WordPress. Go to Settings > Permalinks and re-save them. Then reload the XML Sitemap in your browser with a clean browser cache. ( Try Ctrl+R to bypass the browser cache -- this works on most but not all browsers. ) 404 page instead of both sitemap.xml and robots.txt 有些插件,诸如 Event Calendar(至少从 V3.2 Btea2 起)已知存在重写规则的混乱,会导致 WordPress 内部订阅源与 Robots.txt 文件的生成出现问题,因此它们与 XML 站点地图订阅源插件是存在冲突的。你可以尝试停用所有插件来查看你是否能获得一个包含基础信息的 Robots.txt 文件形如: User-agent: * Disallow: 你需要一次一个地重新激活你的以确认是哪一个插件造成了该问题。然后将其报告给该插件的开发人员。 404 page instead of robots.txt while sitemap.xml works fine There is a known issue with WordPress (at least up to 2.8) not generating a robots.txt when there are no posts with published status. If you use WordPress as a CMS with only pages, this will affect you. To get around this, you might either at least write one post and give it Private status or alternatively create your own robots.txt file containing: ` Sitemap: http://yourblog.url/sitemap.xml User-agent: * Allow: / ` 并将其上传至你的网站根目录。 Error loading stylesheet: An unknown error has occurred 在某些安装与配置的情况下(通常是使用 WordPress MU Domain Mapping 插件)会造成此错误的发生。虽然问题业已定位,但原因却尚无法弄清……除非我能找出为什么会发生这种事。不过请尽管放心,目前已知这个错误只会在通过一般浏览器阅读站点地图时产生影响,但不会影响搜索引擎对你网站的索引。站点地图依旧对所有搜索引擎可读。 XML declaration allowed only at the start of the document 当有空白行或其他输出内容生成于实际站点地图内容之前时,就会产生这一错误。这可能是由于 wp-config.php 或你使用的主题的 functions.php 开头存在空白行,或其它不该输出相关内容的插件生成并输出了内容,并插入到站点地图文件之前。你需要通过禁用所有插件并切换至默认主题、同时手动检查你的 wp-config.php 文件来测试是何种原因导致了这一问题。

在打开站点地图时我只看到一个空白页面。

有几种情况可能会导致本错误的发生。 在浏览器中打开你的站点地图并查看其源代码。这步操作通常可以通过快捷键 Ctrl+U 或在右键弹出菜单中选择“查看源代码…”来进行,你需要检查给出的源代码以判断其中是否存在错误。 A. If you see strange output in the first few lines (head tags) of the source, then there is a conflict or bug occuring on your installation. Please go to the Support forum for help. B. If the source is empty or incomplete then you're probably experiencing an issue with your servers PHP memory limit. In those cases, you should see a messages like PHP Fatal error: Allowed memory size of xxxxxx bytes exhausted. in your server/account error log file. This can happen on large sites. To avoid these issues, there is an option to split posts over different sitemaps on Settings > XML Sitemap. Try different settings, each time revisiting the main sitemap index file and open different sitemaps listed there to check. Read more on Increasing memory allocated to PHP (try a value higher than 256M) or ask your hosting provider what you can do.

我可以在 WPMU / WP3+ 多站点模式 下安装这款插件吗?

完全可以。实际上,本插件就是为此而设计的。目前插件已在 WPMU 2.9.2 与 WPMS 3+ 下经过测试,所有测试环境均正常激活并激活了 Network Activate 与 Site Wide Activate 相关选项。

更新日志:

5.4.9 20240506 5.4.8 20240329 5.4.5 20240221 5.4 20240219 5.3.6 20230810 5.3.5 20230629 5.3.4 20230530 5.3.3 20230528 5.3.2 5.3.1 5.3 5.2.7 20191111 5.2.6 20191009 5.2.4 20190917 5.2.3 5.2.2 5.2 20190429 5.1.2 5.1.1 5.1 20190313 5.0.7 20181025 5.0 20180908 4.9.4 4.9.3 4.9.2 4.9.1 4.9 20180507 4.8.3 4.8 20180316 4.7.6 4.7.5 20161207 4.7.4 4.7.3 4.7 20160506 4.6.3 4.6.2 4.6.1 20160407 4.6 4.5.1 4.5 4.4.1 4.4 4.3.2 4.3 4.2.4 4.2.3 4.2 4.1.4 4.1 4.0.1 4.0.0 3.9.2 3.9.1 3.9 3.8.8 3.8.5 3.8.3 3.8 3.7.4 3.7 3.6.1 3.6 3.5 3.4 3.3 3.2 3.0 2.1 2.0 1.0 0.1