Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form posts to an old or deleted endpoint: how to find and fix it

CNV-047High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

When a visitor presses submit, the browser sends the form data to an endpoint: a URL that receives and processes it. In plain HTML this is the action attribute of the <form> tag. In form builders and JavaScript forms it is often a webhook URL, an API address or a script path.

This issue happens when that URL is stale. Common causes are a site migration, a redesign, a renamed or deleted page, a removed plugin, a cancelled form tool, a deleted Zap or automation webhook, or a staging address that was copied to the live site. The page still looks fine. Only the destination is dead.

Why it costs you leads or sales

A dead endpoint usually means the lead is lost for good. The visitor filled in their details, you never receive them and nothing records the attempt. If the form also shows a generic thank-you message, nobody notices for days or weeks, and every ad click in that time is wasted.

Where the lead is lost
  1. Visitor fills formPage loads and works
  2. Form posts to old URL404, 410, redirect or no response
  3. Notification emailNever triggered
  4. CRM recordNever created

The form loads and submits, but the destination no longer exists.

Leads captured vs leads lostExample numbers
Leads captured vs leads lost (example)Before the break: 40 leads per week; After the break: 0 leads per week01531400Before the breakAfter the breakleads per week

Example: a site with 40 real form fills a week. After the endpoint dies, none reach you.

How to check if your site has it

Find where your form really posts
  1. Open the page and DevTools

    Open the form page in Chrome, Edge or Firefox, press F12 and go to the Network tab. Tick Preserve log.

  2. Submit a test lead

    Fill the form with a test name and an email you control, then submit.

  3. Find the POST request

    Filter by Fetch/XHR or look for a request with method POST. Note its URL and status code.

  4. Read the status

    404 or 410 means the URL is gone. A 301 or 302 to a homepage means it was redirected and the data is dropped. A failed or blocked request means the domain no longer resolves or is refused.

  5. Check the HTML as a second source

    Right-click the form, choose Inspect and read the action attribute. Search your page source for old domains, staging URLs or retired tool names.

Test the endpoint from a terminalbash
curl -i -X POST https://example.com/old-form-handler -d "email=test@example.com"
# Look at the first line: 404, 410 or a 301/302 means the endpoint is dead or moved.

How to fix it

The fix is the same everywhere: replace the dead address with the live one. Where you do it depends on how the form is built.

Repoint the form by platform
  1. Check the form plugin

    In Contact Form 7, Gravity Forms, WPForms or Fluent Forms, open the form and check its integrations or webhook settings for a old URL. Update or re-save them.

  2. Check hard-coded forms

    In the page builder or theme files, search for the old URL in any custom HTML form and replace the action.

  3. Clear caches

    Purge your caching plugin and CDN so visitors do not get the old page.

Form with an explicit, current actionhtml
<form action="https://example.com/api/leads" method="post">
  <input type="email" name="email" required>
  <button type="submit">Send</button>
</form>

How to confirm it's fixed

Confirmation checklist
  • The Network tab shows the POST request returning a 200 or 2xx response, or a correct redirect to a thank-you page.
  • The notification email arrives in the right inbox within a few minutes.
  • The test lead appears in your CRM with every field filled.
  • The thank-you page or message shows after submit.
  • You tested on mobile and desktop, in a private window.
  • Search the page source: no old domains, staging URLs or retired tool names remain.

How to prevent it happening again

Prevention habits
  • Before a migration or redesign, list every form and where it posts, then test each one after launch.
  • Before cancelling a form tool or deleting a Zap or webhook, check which pages still use it.
  • Use relative or platform-native form handlers instead of hard-coded full URLs where possible.
  • Keep redirects for old handler paths, using 307 or 308 so POST data survives.
  • Run a test submission after every theme, plugin or automation change.
  • Monitor the form on a schedule so a dead endpoint is flagged the same day.

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor opens your page on a schedule, fills in and submits the form like a real visitor, and checks the result. If the submit fails, or the lead is not delivered to your inbox or CRM (a delivery failure), the check fails.

A failure is re-checked from a second region first, so a one-off blip does not trigger a false alarm. Then one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. Test submissions are marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent) so you can filter them out. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Questions people ask

Why is my form not sending after I migrated my website?

Most often the form still posts to the old site's URL, a staging address or a handler that was not moved. Open the Network tab, submit a test, and check the POST request's URL and status. Then update the form to use the live handler.

How do I find out where my form is submitting to?

Open DevTools with F12, go to the Network tab, submit the form and look for the POST request. Its URL is the endpoint. You can also inspect the form and read the action attribute in the HTML.

What does it mean when a form posts to a 404 endpoint?

It means the URL that should receive the data no longer exists. The server cannot process the submission, so the lead is not stored or emailed. You need to point the form to a working handler.

Why does my form say thank you but I get no leads?

Many forms show a success message regardless of the server's reply. The data may be going to a deleted endpoint or webhook. Check the Network tab for a failed POST and confirm a test lead arrives in your inbox or CRM.

Can a redirect fix a form pointing to an old URL?

Only if it keeps the POST data. A 301 or 302 usually turns the request into a GET and drops the form data, while a 307 or 308 keeps the method and body. The better fix is to update the form to the new URL.

What happens if I deleted a Zapier or Make webhook used by my form?

The form will keep posting to a URL that no longer accepts data, so leads stop flowing. Create a new webhook in the tool, paste the new URL into your form settings and run a test submission.

How often should I test my forms?

Test after every change to the site, plugins, forms or automations, and regularly in between. Automated monitoring that submits the form on a schedule catches a dead endpoint without waiting for someone to notice missing leads.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: submit fails or delivery_failed.

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.