Prevent Search Engine Indexing through .htaccess File

Copy and paste the above code in the .htaccess file to prevent search engine indexing.

# Prevent Search Engine Indexing
SetEnvIf Host ^www.yourwebsite.com INDEX
Header set X-Robots-Tag "noindex, nofollow" env=!INDEX

If you don’t have .htaccess file in your web server, create it and add the above mentioned code.

Comments

Popular posts from this blog

About 12 Alwars

Post thumbnails from external URLs don’t appear in Blogger. How to resolve?

What is the unicode character for the close symbol?