How to stop WordPress showing a virtual Robots.txt?
Two options: Create a static file robots.txt. Highly recommended. Filter ‘robots_txt’: add_filter( ‘robots_txt’, ‘wpse_77969_robots’ ); function wpse_77969_robots() { status_header( 204 ); return ”; }