Force Robots Production Ignore
Non Production Robots Ignore is a simple WordPress package that is used with vlucas/phpdotenv (or similar) that sets environment variables to set robots.txt to ignore all on all environments except production.
by matgargano · github.com/matgargano/non-production-robots-ignore · website
★ 2stars
2.4kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/matgargano/non-production-robots-ignore/archive/refs/heads/master.zipAlso on Packagist as mgargano/non-production-robots-ignore:
composer require mgargano/non-production-robots-ignoreFrom the readme
Non Production Robots Ignore
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 WPENV environment variable and set it to anything but production on non-production environments. If production is set, this plugin will be ignored as desired.
- Activate the plugin
- ???
- profit