Is a page already in search results and still useful to people with a direct link? Keep its 200 response and add noindex. The crawler needs to open the URL to see the directive. If robots.txt already blocks the path, remove the block so the directive can be read.
Choose based on what should happen to the URL
| Goal | Action |
|---|---|
| Keep the page public | 200 with crawlable noindex |
| The page is permanently gone | Return 404 or 410 and remove the URL from the sitemap |
| An equivalent replacement exists | Direct 301 to the replacement and updated internal links |
| Limit crawling of repetitive paths | Disallow the path in robots.txt. A blocked URL can still appear in search if discovered through links. |
How to check the published signal
Open the URL while signed out and check the status of the GET request. For an HTML page returning 200, look for the meta tag in the source. For a PDF, check the X-Robots-Tag response header. Then check robots.txt for the same host and protocol, using the crawler’s applicable group.
<meta name="robots" content="noindex">
X-Robots-Tag: noindex
curl -sS -D headers.txt -o page.html https://example.com/page/
curl -fsS https://example.com/robots.txt
If a deleted page displays an error message and still returns 200, fix the status. For a 301, check Location and confirm that the destination returns 200 directly. Google needs to recrawl the address to see the change. Use access controls for private content.
