PHP code example of devgeniem / wp-noindex-testing-staging-robots
1. Go to this page and download the library: Download devgeniem/wp-noindex-testing-staging-robots library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devgeniem / wp-noindex-testing-staging-robots example snippets
// hides site from robots if its accessed from any geniem.io or example.com subdomain.
define('WP_HIDE_ROBOTS_DOMAINS','geniem.io,example.com');