Force Robots Production Ignore
Non Production Robots Ignore is a simple WordPress plugin that is used with vlucas/phpdotenv (or similar) that sets environment variables to set robots.txt to ignore all on all environments except production.
★ 2stars
2.4kcomposer installs
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/matgargano/non-production-robots-ignore/archive/refs/heads/master.zipOn Packagist as mgargano/non-production-robots-ignore:
composer require mgargano/non-production-robots-ignoreNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Non Production Robots Ignore is a simple package (named in a utilitarian vein) for WordPress that is used with vlucas/phpdotenv (or similar) that sets environment variables.
To use this:
- Use Composer to manage your dependencies for your WordPress project
- Have type:wordpress-plugins installed in your plugins directory
- Set a
WP_ENVenvironment variable and set it to anything butproductionon non-production environments. If production is set, this plugin will be ignored as desired. - Activate the plugin
- ???
- profit