I have a Wordpress site that uses the Astra theme. In Chrome's Lighthouse tab it states:
Page is blocked from indexing
Blocking Directive Source
x-robots-tag: noindex, nofollow
However:
Does anyone understand why the page is blocked from indexing?
Update:
I checked in the network tab, and under response headers it states x-robots-tag: noindex, nofollow
.
I looked at the source code of the page to check the meta tags, but there's nothing in there about x-robots
, noindex
or nofollow
.
The file robots.txt contains the following:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://example.com/wp-sitemap.xml
How can I make the Wordpress site not being blocked from indexing?
I received a response from the hosting agency. The site at the moment is still on a subdomain of the hosting agency. They replied: "It comes from the nginx setup for default domains. Once you will use the domain name this would get resolved." So, once I switch to my own domain it should be resolved and I think the conclusion is that the nginx server configuration is the cause (set up this way on purpose).