WP Robots Txt

描述

WordPress, by default, includes a simple robots.txt file that’s dynamically generated from within the WP application. This is great, but how do you easily change the content?

Enter WP Robots Txt, a plugin that adds an additional field to the “Reading” admin page where you can do just that. No manual coding or file editing required!

Simply visit https://your-site.com/wp-admin/options-reading.php and you can control the contents of your https://your-site.com/robots.txt

Changelog

屏幕截图

  • A view of the admin option

安装

  1. Download the plugin
  2. Unzip it
  3. Upload the unzipped folder to wp-content/plugins directory
  4. Activate and enjoy!

Or you can simply install it through the admin area plugin installer.

常见问题

I totally screwed up my `robots.txt` file. How can I restore the default version?

Delete all the content from the Robots.txt Content field and save the privacy options.

Could I accidently block all search bots with this?

Yes. Be careful! That said, robots.txt files are suggestions. They don’t really block bots as much as they suggest that bots don’t crawl portions of a site. That’s why the options on the Privacy Settings page say “Ask search engines not to index this site.”

Where can I learn more about `robots.txt` files?

Here is a general guide by Google and here is the WordPress SEO documentation.

评价

2022 年 10 月 21 日
Ottimo ti basta attivar il plugin
2018 年 1 月 15 日
Good code, nice interface. It doesn’t have builtin dynamic replacement functionality (like, {siteurl}/sitemap_index.xml), but it can be added with a simple filter. Thanks for the great plugin!
2016 年 9 月 3 日
Simple plugin that helped me to fix a js. problem in Google search
2017 年 2 月 7 日
I am using this plugin to overcome my robots.txt problem. This is very useful plugin. http://www.gemstonesprices.in Amethyst Stone
阅读所有18条评价

贡献者及开发者

“WP Robots Txt” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「WP Robots Txt」插件已被翻译至 5 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“WP Robots Txt”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.3.3

  • Add Line Break to allow appending more rules. Thanks @flberger

1.3.2

  • Add translation template

1.3.1

  • Compatibility with WordPress 6.4
  • WP Coding Standards compliant

1.3

  • Ensure Compatibility with WP v6.3
  • Increase PHP minimum required version

1.2

  • Update the default robots.txt content
  • Include sitemap reference
  • Resolve code warnings/errors
  • WP Coding Standards compliant
  • Ensure Compatibility with WP v6

1.1

  • Moved the settings field “officially” to the reading page
  • General code clean up

1.0

  • Initial version