I have a domain with a website developed in Wordpress. On the server I created a folder called / chat, I do not want Google to index this folder. What to do?
I have a domain with a website developed in Wordpress. On the server I created a folder called / chat, I do not want Google to index this folder. What to do?
For Google
, you can use:
<meta name="googlebot" content="noindex">
For the whole folder as mentioned in these answers :
robots.txt
User-agent: *
Disallow: /chat
You can test your file robots.txt
If you are using Apache
:
<Directory /var/www/chat>
#O sinal "-" representa "no"
Options -Indexes
</Directory>