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 maybe you want to 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.

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

WP Robots Txt was originally developed by chrisguitarguy. The plugin has been adopted and updated by George Pattihis who will continue development.

螢幕截圖

  • 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.

評價

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
閱讀全部17個評價

貢獻者及開發者

“WP Robots Txt” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

WP Robots Txt 外掛目前已有 4 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 WP Robots Txt 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

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