Redirect the robots.txt in a multiple Domain used server path

In Order to use multiple domains on the same server path one solution is, to modify the apache mod_rewrite module and the .htaccess. Add the following code to your .htaccess: RewriteCond %{HTTP_HOST} RewriteRule ^robots.txt$ /robots-domainA.txt [L] RewriteCond %{HTTP_HOST} RewriteRule ^robots.txt$ /robots-domainB.txt [L]

Block google to read your contact site – Meta Tag robots noindex

in Order to block crawlers of the search engines like google from reading and indexing sites of your wordpress installation you may use the slug. If you want to block the site for example you put the following code into your header: <?php if (is_page(‘impressum’)):?><meta name=”robots” content=”noindex ” /><?php endif;?> if you use your … Read more