Replaces the default virtual robots.txt generated by WordPress with an editable one, and deletes any physical robots.txt file that may already exist.
FAQ
Installation Instructions
- Upload the plugin files to
/wp-content/plugins/virtual-robotstxt-littlebizzy
- Activate the plugin through the ‘Plugins’ screen in WordPress
- Check your WP Admin dashboard (admin users only) and footer area to view the statistics
- For Apache servers, it should work aotomatically
-
For Nginx servers (without Apache in front) make sure try_files
sends requests to WordPress:
location = /robots.txt {
try_files $uri $uri/ /index.php?$args;
allow all;
log_not_found off;
access_log off;
}
Does this plugin replace the need for my physical robots.txt file?
Yes. Currently its a totally virtual robots.txt solution that will “delete” any physical robots.txt that exists. The reason for this is to make WordPress as self-contained as possible, and since there is no real downside to managing robots.txt in such a virtual fashion. In future versions, we may create the option to switch between either a virtual or physical file, but for now its totally virtual as explained.
Does this plugin edit a physical robots.txt or only store a virtual robots.txt content?
This plugin will NOT edit a physical robots.txt file and only offers a virtual robots.txt content via the wp_options table.
How can I change this plugin’s settings?
Under the Settings menu on the left hand site, a new link is generated called Robots.txt
Are there any performance drawbacks to using this plugin?
Absolutely not. All wp_options are cached by default in WordPress and loaded prior to other data. In a theoretical world, a physical robots.txt file may in fact load more quickly, but all purposes both humans and robots wouldn’t notice a difference when using a virtual file. Please note that if you are using CloudFlare or other special cache systems, you may need to clear those to see your robots.txt update correctly. However, traditional caches such as page cache plugins or oboject caching (i.e. Memcached or Redis) should not effect the content of this plugin.
I’m using Nginx and this plugin is not working?
Make sure you are sending requests for the static file robots.txt via your PHP proessor such as PHP-FPM:
location = /robots.txt {
try_files $uri $uri/ /index.php?$args;
allow all;
log_not_found off;
access_log off;
}
I have a suggestion, how can I let you know?
Please avoid leaving negative reviews in order to get a feature implemented. Instead, we kindly ask that you post your feedback on the wordpress.org support forums by tagging this plugin in your post. If needed, you may also contact our homepage.
ChangeLog
1.0.7
- added warning for Multisite installations
- updated recommended plugins
1.0.6
- tested with WP 4.9
- added support for
define('DISABLE_NAG_NOTICES', true);
1.0.5
- optimized plugin code
- updated recommended plugins
- added rating request
1.0.4
- minor code tweaks
- updated recommended plugins
1.0.3
- added recommended plugins
1.0.2
1.0.1
- changed menu link name
- added tips to settings page
- changed folder name
1.0.0
- initial release (private)