Problem Stopping Search Engines From Crawling Site
-
I had a consultant install and configure a WordPress site on one of my servers for me. I now want to begin adding blog posts but I don’t the search engines to crawl it quite yet. I logged into the WP Dashboard and went to Settings > Reading and checked the Search Engine Visibility checkbox but I noticed that even after I did this, the pages still seem allow links to be followed even though indexing appears to be disabled:
<meta name="robots" content="noindex,follow"/>
I was reading a Yoast article Preventing your site from being indexed the right way that said to add this line to my .htaccess file:
Header set X-Robots-Tag "noindex, nofollow"
I did that but the robots meta tag in each page still says “follow” instead of “nofollow” and I don’t understand why. I do have the Yoast SEO plugin installed so I’m wondering if that could be the problem. If so, how do I temporarily disable it? Currently that plugin is showing a warning notification in the dashboard that says, “Huge SEO Issue: You’re blocking access to robots.”
It might also be due to the fact that I added a block of code to the very end of my .htaccess file in the document root directory to password-protect the blog site https://example.com/blog just as an extra precaution. The end of that file now looks like this:
... # END WordPress Header set X-Robots-Tag "noindex, nofollow" AuthType Basic AuthName "Restricted Area" AuthUserFile /var/www/html/.htpasswd require valid-user
What do I need to do so that the robots meta tag will say “noindex, nofollow”?
Thanks.
- The topic ‘Problem Stopping Search Engines From Crawling Site’ is closed to new replies.