Updating .htaccess to force noindex of a specific domain pointing to the mais site
I'd like to avoid google from indexing the domain "
http://company.hostprovider.ws", because it's not my original domain (it's a default domain that the hosting provider delivered allowing to load the site without a having a domain setup) and "
http://www.company.com/wp-admin/". Making some searching, I found some tips of doing that in .htaccess inserting the code above:
<FilesMatch "
http://company.hostprovider.ws">
Header set X-Robots-Tag "noindex, noarchive, nosnippet"
</Files>
<FilesMatch "
http://www.company.com/wp-admin/">
Header set X-Robots-Tag "noindex, noarchive, nosnippet"
</Files>
But I got error in the whole site after inserting that.
Can somebody help me?