No: ‘noindex’ detected in ‘X-Robots-Tag’ http header

[ad_1]

all of my pages showing that headers.

I tried..

  1. disable all plugins,

2. add_headers on nginx’s wordpress.conf

proxy_hide_header X-Robots-Tag
more_clear_headers X-Robots-Tag

3. edit htaccess files

Header always unset X-Robots-Tag
Header always set X-Robots-Tag "index,follow,archive,snippet,translate,imageindex"

4. USE HTTP Header plugin

5. I tried to add php snippet

add_filter( 'rank_math/sitemap/http_headers', function( $headers ) {
	if ( '/sitemap_index.xml' == $_SERVER['REQUEST_URI'] ) {
	    return $headers;
	}
	unset( $headers['X-Robots-Tag'] );
	unset( $headers['x-robots-tag'] );
	return $headers;
} );

Doesn’t work at all..

  • This topic was modified 9 hours, 39 minutes ago by colah16.
  • This topic was modified 9 hours, 33 minutes ago by colah16.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer