Skip to content
FunnelGuard

Fix guide by FunnelsGuard

unavailable_after with a past date: why your page left Google

SEO-037Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

unavailable_after is an indexing directive. It says: after this date and time, do not show this page in search results. It was designed for pages with a natural end, such as a sale, an event or a limited offer.

The problem starts when the date passes but the page stays live, or when the directive is left on a page you reuse. Google treats the date as an instruction, so the page can be removed from results even though nothing looks wrong in the browser.

Meta tag formhtml
<meta name="robots" content="unavailable_after: 2024-12-31T23:59:59+00:00">
<meta name="googlebot" content="unavailable_after: 31 Dec 2024 23:59:59 GMT">
HTTP header formtext
X-Robots-Tag: unavailable_after: 2024-12-31T23:59:59+00:00

Why it costs you leads or sales

A page that leaves the index stops getting organic visits. If it is a service page, a product page or a landing page, the leads and sales that came through it stop too. Links to it from other sites also lose most of their search value.

The cause is easy to miss. The page loads, forms work and ads can still point to it. Only organic traffic falls, and often weeks after the date passed, because Google needs to recrawl the page before it acts.

How it unfolds (Example)
  1. Day 0

    A seasonal page is published with unavailable_after set to the end of the campaign.

  2. Campaign end

    The date passes. The page is kept live and reused for next season's offer.

  3. Next recrawl

    Google reads the past date and drops the page from results.

  4. Weeks later

    Organic leads fall. Nothing is visibly broken on the site.

  5. After the fix

    The directive is removed and reindexing is requested. The page returns over days or weeks.

Organic visits to the affected pageExample numbers
Organic visits to the affected page (example)Week 1: 400 visits per week; Week 2: 410 visits per week; Date passes: 380 visits per week; Week 4: 120 visits per week; Week 5: 20 visits per week; Fix made: 30 visits per week; Week 8: 300 visits per week01573144004103801202030300Week 1Week 2Date passesWeek 4Week 5Fix madeWeek 8visits per week

Example: illustrative numbers showing organic visits falling after the date passes and recovering after the fix.

How to check if your site has it

Start with a page that lost organic traffic. Check both the HTML and the HTTP headers, because the directive can sit in either place.

Check a page for unavailable_after
  1. Inspect the URL in Search Console

    Open Search Console, paste the URL into the top bar and read the result. Look for a status like 'Excluded by noindex tag' or 'Page is not indexed'. Then open 'View crawled page' to see the HTML and HTTP response Google received.

  2. Search the page source

    Open the page, use View Source and search for unavailable_after, robots and googlebot. Check the date in the content value.

  3. Check response headers

    In browser DevTools, open the Network tab, reload, click the first request and read the response headers. Look for X-Robots-Tag. You can also run the curl command below.

  4. Compare the date with today

    If the date is in the past, the directive is the likely reason the page left search.

Check headers and meta tags from the command linebash
curl -sI https://example.com/your-page | grep -i x-robots-tag
curl -s https://example.com/your-page | grep -i -E 'unavailable_after|name="robots"|name="googlebot"'

How to fix it

Decide first whether the page should still be found. If yes, remove the directive or move the date far into the future. If the page is truly finished, leave the directive and consider redirecting or retiring the page cleanly.

Where the journey breaks
  1. Search resultPage dropped from results
  2. Landing pageNo organic visits
  3. Form or checkoutFewer submissions
  4. Lead or saleLower volume

The directive removes the page from search, so every step after it loses visitors.

Remove the directive by platform
  1. Check your SEO plugin

    In Yoast SEO, Rank Math or similar, open the page's advanced or robots settings and look for custom robots directives. Clear any unavailable_after value and save.

  2. Check theme and code

    Search the theme's header.php, functions.php and any snippets plugin for unavailable_after and the wp_robots filter. Remove the directive.

  3. Clear caches

    Purge page and server caches so Google receives the updated HTML.

Page head before and after

Before

  • Robots tag contains unavailable_after with a date in the past
  • Page leaves Google's results
  • Organic leads fall

After

  • Directive removed, or date set in the future for a real end date
  • Page is eligible for indexing again
  • Organic visits recover after a recrawl

How to confirm it's fixed

Confirmation checklist
  • View Source and the response headers no longer show unavailable_after, or show a future date
  • No conflicting robots meta tag or header remains
  • Search Console URL Inspection > Test live URL shows the page as indexable
  • You clicked Request indexing for the page
  • The page appears for a site: search or in the Pages report after a few days

Recovery is not instant. Google has to recrawl the page, so it can take days or longer. Requesting indexing helps but does not guarantee a time.

How to prevent it happening again

Prevention habits
  • Use unavailable_after only on pages that really end, and note the date in your content calendar
  • Review expiring dates a week before they pass
  • Do not clone old campaign pages without checking their robots settings
  • Keep robots directives in one place, such as one SEO plugin, instead of plugin, theme and server at once
  • Check the Pages report in Search Console monthly for new exclusions
  • Crawl your site periodically with an SEO crawler and filter for the robots directive column

How FunnelGuard handles this

FunnelGuard does not check for this yet. An unavailable_after date check is a possible future addition, but today it is not part of the product.

What FunnelGuard does do is run your real customer journeys, such as lead forms, checkouts and booking buttons, on a schedule, and check the steps, the tracking hits and whether test leads arrive. That tells you if the journey works once visitors arrive. It does not tell you whether Google still lists the page.

To watch for this issue, use Search Console's Pages report and URL Inspection on your key pages, and run a site crawler that reports robots meta tags and X-Robots-Tag headers. Re-check any page with a campaign end date. A free FunnelGuard read-only website audit is also available, but do not treat it as a check for this directive.

A live page that search no longer lists

The page works for people who have the link, but search no longer sends visitors to it.

Questions people ask

What does unavailable_after do?

It is a robots directive that tells Google to stop showing a page in search results after a given date and time. Before that date the page is indexed normally. You can set it in a robots meta tag or an X-Robots-Tag HTTP header.

Why did my page disappear from Google after a certain date?

One possible reason is an unavailable_after directive with a date that has passed. Check the page source and response headers for it. Search Console's URL Inspection tool also shows what Google found when it last crawled the page.

How do I remove the unavailable_after tag?

Delete the robots meta tag or the X-Robots-Tag header value that contains it. Look in your SEO plugin, theme files, code injection settings and server config. Then request indexing in Search Console.

Can I set a new future date instead of removing it?

Yes, if the page has a real end date. Update the date to a time in the future in the meta tag or header. If you want the page indexed long term, removing the directive is safer.

How long does it take to get back into Google after the fix?

It depends on how often Google recrawls the page. It can take days or longer. Using Request indexing in Search Console can speed it up, but there is no guaranteed time.

What date format should unavailable_after use?

Google accepts widely used formats such as ISO 8601 (2025-12-31T23:59:59+00:00) and RFC 850. Include a time zone so the end time is clear. An unreadable date may be ignored.

Is unavailable_after the same as noindex?

No. Noindex applies immediately, while unavailable_after applies only after the date. Once the date has passed, the effect is similar: the page is removed from search results.

Does FunnelGuard detect unavailable_after problems?

No. FunnelGuard does not check this yet. It tests your customer journeys, tracking and lead delivery, so use Search Console and a site crawler to watch for indexing directives.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.