mgargano / non-production-robots-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.
Installs: 2 436
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Suggests
- vlucas/phpdotenv: Allows you to set required fields for a project, one of which is used by this project, 'ENV'
README
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_ENV
environment variable and set it to anything butproduction
on non-production environments. If production is set, this plugin will be ignored as desired. - Activate the plugin
- ???
- profit