Precedence of X-Robots-Tag header vs robots meta tag

后端 未结 3 1309
灰色年华
灰色年华 2021-02-14 00:34

I\'ve placed the following Header in my vhost config:

Header set X-Robots-Tag \"noindex, nofollow\"

The goal here is to just disab

3条回答
  •  无人共我
    2021-02-14 01:01

    Just an update to Dan's experience, I also have both the

    Header set X-Robots-Tag "noindex, nofollow"
    

    and

    
    

    on my one of my Wordpress sites, and a check in Google Search Console confirmed that the noindex in X-Robots-Tag is taking precedence as the pages have been crawled and but aren't indexed. So the logic in the correct answer is indeed, correct.

提交回复
热议问题