该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Multipart robots.txt editor

描述

This plugin needs more documentation!

You can edit your robots.txt and add remote content to it.
E.g. you have several sites and want to use a centralized robots.txt.

Features

  • Include or exclude WordPress’ own robots.txt (core function)
  • Include or exclude plugins – e.g. sitemap plugins – output to robots.txt (filter output)
  • Include or exclude a remote text file (the common part)
  • Include or exclude custom records from the settings page (the site specific part)

Where is robot.txt?

WordPress handles robots.txt as a virtual URL – just the same way as posts and pages.

So when you browse to https://example.com/robots.txt WordPress generates robots.txt on the fly.

TODO

  • add more description here
  • add a video too
  • add an admin notice for subdir installs (robots.txt is useless in a subdir)
  • ‘At least one “Disallow” field must be present in the robots.txt file.’ – check for that

Links

Development of this plugin goes on on GitHub.

安装

This section describes how to install the plugin and get it working.

  1. Upload the content of the ZIP feil to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题

Where is robot.txt? Why isn’t it generated at WordPress root directory?

WordPress handles robots.txt as a virtual URL – just the same way as posts and pages.

So when you browse to https://example.com/robots.txt WordPress generates robots.txt on the fly.

How often will be the remote text file downloaded?

Every 24 hours and when you press the Sava Changes button on the setting page.

评价

2019 年 1 月 10 日
hello why it is still showing your robots.txt file even after deleted your plugin and files. I created my own robots.txt file and uploaded. Still showing your genereted file and even i deleted. Still showing why?????????
阅读所有3条评价

贡献者及开发者

“Multipart robots.txt editor” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Multipart robots.txt editor」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Multipart robots.txt editor”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.4.0

  • After Shiny Updates (AJAX plugin actions) it was not possible to uninstall

0.3.0

0.2.2

  • Added explanation about robots.txt file – NO code change

0.2.1

  • Googlebot needs CSS and JS files
  • Introducing semver

0.2

  • Fixed some serious PHP Notices, sorry

0.1

  • Initial release