How to fix the The X-Robots-Tag HTTP header is not set to none warning

preview_player
Показать описание
In this website tutorial for beginners you will learn how to fix issue The "X-Robots-Tag" HTTP header is not set to "none". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly. So you will add code in .htaccess file in website e.g. html, php or wordpress or if you already added code in .htaccess then replace "none" with "noindex, nofollow" in hosting.

* Add code in .htaccess file
Header always set X-Robots-Tag "noindex, nofollow"

* find code in top pinned comment section with ifmodule.

#htaccess #xrobottags #http #header #website #wordpress #html #php #webtaskwithhassan #hassangilani
Рекомендации по теме
Комментарии
Автор

Use this code:

<IfModule mod_env.c>
Header always set X-Robots-Tag "noindex, nofollow"
</IfModule>

WebTaskWithHassan
Автор

This is the second time I've had a problem with one of my clients' sites and it's been twice that I've come across your video and you've saved me. Thanks to you from France

palmsquare
Автор

Please can we use the same method to solve an issue of ‘Robots-Tag is missing’ ?

hellovybesnews