[ad_1]
all of my pages showing that headers.
I tried..
- disable all plugins,
2. add_headers on nginx’s wordpress.conf
proxy_hide_header X-Robots-Tag
more_clear_headers X-Robots-Tag3. 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 .
- This topic was modified 9 hours, 33 minutes ago by .
The page I need help with: [log in to see the link]
