devgeniem / wp-noindex-testing-staging-robots
Uses robots.txt to not index development/testing environments of this site with search-engines
Installs: 12 495
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 7
Forks: 0
Open Issues: 0
Type:wordpress-muplugin
Requires
- php: >=5.6
- composer/installers: ^v1.0.12
This package is auto-updated.
Last update: 2024-12-20 15:40:28 UTC
README
WP MU-Plugin: Hide Development/Testing enviroments from robots
Deny site from /robots.txt
if it's accessed with WP_ENV=staging
or WP_ENV=testing
.
Also denys it if the site is accessed with domain that ends with domain mentioned in WP_HIDE_ROBOTS_DOMAINS
.
Installation
$ composer require devgeniem/wp-noindex-testing-staging-robots
Example config
// hides site from robots if its accessed from any geniem.io or example.com subdomain. define('WP_HIDE_ROBOTS_DOMAINS','geniem.io,example.com');
Maintainer
License
MIT