Neil Cheesman: The header is fine - it was deleted and set as a 410 in Yoast - when it shouldn`t have been...
Neil Cheesman: The url was removed and given a 410 in error a couple of days ago - via Yoast - now when trying to submit the url via GSC it won`t reindex as GSC says 404 not found - BUT it is a live url.
Neil Cheesman: Thanks - I have been looking but not sure where to find/edit the header etc... I checked out Yoast online and they simply say re-crawl etc... in GSC - but clearly that doesn`t work..
Richard Hearne: It`s a HTTP header. Not in the source, but part of the network traffic related to the page. You cannot depend on what you see rendered int he page to determine the header. CURL is a bit of a monster, but basic usage is well worth learning. Even more so if you`re into Technical SEO in any way.
Dave Elliott: Theres loads of browser plugins that will give you header response info as well. Much easier.
Neil Cheesman: FIXED IT - simply need to put the url (a product) back into drafts and re-publish... D`oh!
Richard Hearne: Be careful. That does not sound like regular WP behavior. Publishing the page may have updated something that changed the header settings, but that doesn`t mean that the cause of this has gone away. Keep an eye on it for a wee bit.
George G.: its probably a yoast bug that happens in some extreme cases so nobody has paid attention to it.
Neil Cheesman: I saw that the url wasn`t in the sitemap... put into draft and then re-published and it appeared. It was an unusual scenario and basically down to humann error that a handfull of urls were given 410s but then realised they shouldn`t have been.
Richard Hearne: Possibly, but it would be a very destructive bug. Not something to leave unpatched.
If it is from Yoast I think it might be from the bug where they allowed attachment URLs to get indexed, and then brought out the fix which was to 410 those URLs and submit a new sitemap to get them crawled and deindexed.
George G.: yea yoast got history of having quite a few bugs. also yes, could be related.