Remove the search engine block in WordPress
site not on google after relaunch | turn off discourage search engines | remove noindex after go live | wp-cli | seo | optionsCaution: This command changes the system. Understand what it does before you run it.
wp option update blog_public 1 --path=/var/www/vhosts/example.com/httpdocsEquivalent to unchecking “Discourage search engines from indexing this site” under Settings, Reading. A common SEO mistake after a staging site goes live. Afterwards, the noindex in the header is gone and the virtual robots.txt no longer blocks crawlers.
Note: On a staging environment, deliberately keep the value at 0. Clear caches afterwards so the new meta tag is served.
Also searched as
- site not on google after relaunch
- turn off discourage search engines
- remove noindex after go live