Skip to content

Adds an option to the Settings (Reading) page that allows editing of the content in the virtual `robots.txt` file.

License

GPL-2.0, Unknown licenses found

Licenses found

GPL-2.0
LICENSE
Unknown
LICENSE.md
Notifications You must be signed in to change notification settings

ADARTA/WP-Robots-Txt-Version2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress robots.txt Version 2

This is a single serving plugin that adds a field on the Settings->Reading WordPress admin page which allows you to edit the virtual robots.txt file contents.

WordPress has a virtual robots.txt file when there is not a robots.txt physically in your servers root directory. This plugin allows the editing and override of the settings for the robots.txt when it does not physically exist. This will allow for a quick edit of the settings without having to physically upload your settings.

WP Robots Txt

Limitations

If you have a robots.txt file on your server, this plugin will be ignored. WordPress, in the server configuration it suggests by default, never overrides URLs that exist on your server. In other words, if robots.txt is on your server, WP will never even load -- Apache (or nginx or IIS) will serve that file directly.

Also, this plugin does not help you write a valid robots.txt file, nor will it alert you when you've written one that is invalid. That part is up to you.

FAQ

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 click the Save Changes button.

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 list

After trying to understand the Robots.txt, go read this article that will help you understand some of the pitfalls. Joost De Valk explains why WordPress should not blog some directories by default

This plugin does not try to fix your settings. It allows you to quickly change your settings, so you can easily change settings as bots change the way they crawl.

Changelog

2.0.0

  • Don't overwrite the discourage search engines flag anymore
  • When clearing the content from the Robots.txt Content field, you will be prompted to save the reloaded defaults.
  • Shows an iFrame of your most current Robots.txt file below the edited content.
  • Allows for a custom installed wp-admin,wp-includes folders.

About

Adds an option to the Settings (Reading) page that allows editing of the content in the virtual `robots.txt` file.

Resources

License

GPL-2.0, Unknown licenses found

Licenses found

GPL-2.0
LICENSE
Unknown
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%