On this page
What this issue is
After someone signs up, your app emails a verification link (also called a confirmation or activation link). It contains a one-time token that proves the person owns the address. This issue is when clicking that link shows a 404 page, an 'invalid token' message or 'link expired', instead of confirming the account.
It is different from the email never arriving, and different from the link working but sending the user into a login loop. Here the email arrives and the link is clicked, but the destination fails.
Why it costs you leads or sales
The user has just shown intent: they filled in your form and went to their inbox. A failed link is the first real experience of your product. Many will not retry. They will not request a second email, and some will assume the product is broken. Every signup lost here is also invisible in most dashboards, because the signup event was recorded as a success.
- Signup formSubmitted OK
- Verification emailDelivered to inbox
- Click link404 or 'expired'
- Account activeNever reached
- OnboardingNever reached
The email is sent and opened, but the link fails, so activation and everything after it is lost.
Example: of 100 signups, a broken link means most never activate. Numbers are illustrative.
Common causes
| Cause | What the user sees | How to spot it |
|---|---|---|
| Wrong domain or path in the email (staging URL, old route, missing locale) | 404 | Hover over the link and compare it to a working page URL |
| Token lifetime too short (for example minutes) | Expired message | Link fails when clicked later but works straight away |
| Email security scanner opens the link first and uses up a one-time token | Expired or 'already used' | Link fails for corporate addresses but works for personal Gmail |
| Link broken by email client or tracking wrapper (line wrap, encoded characters, click tracking) | 404 or invalid token | Copy the link from the raw email source and compare |
| Route removed or renamed in a deploy | 404 for everyone | Failures start at a deploy time |
| Redirect strips the token query string | Invalid token | Token missing in the address bar after landing |
How to check if your site has it
Sign up with a fresh address
Use an inbox you control, ideally one on a business domain as well as a personal one.
Click the link straight away
Note whether it confirms the account. If not, record the exact message and the address bar URL.
Test a delayed click
Sign up again and wait longer than your stated expiry before clicking. Check the message is clear and offers a resend.
Click the same link twice
The second click should show a friendly 'already verified' state, not an error.
Inspect the raw link
View the email source. Check the domain, path and that the token is complete and not altered by a tracking wrapper.
Check your server logs
Look for 404 or 410 responses on the verification route and for hits from non-human user agents right after emails are sent.
How to fix it
Fix the cause you found. The steps below depend on how your signup is built, so pick your platform.
Check the site URL
In Settings > General, make sure WordPress Address and Site Address use the live domain and https. Wrong values here produce links to the wrong host.
Review your membership or login plugin
Most plugins have an email confirmation or account activation setting. Look for the link expiry and the activation page, and confirm that page is published and not set to noindex or password protected.
Exclude the link from caching and optimisation
Add the activation page and its query parameters to the exclusions of your caching plugin and CDN so the token is not cached or stripped.
Turn off email click tracking for this email
If your SMTP or email plugin rewrites links, disable that for transactional emails.
Build links from a configured base URL
Use one environment variable for the public base URL so staging or localhost never appear in production emails.
Lengthen the expiry
Move from minutes to at least 24 hours, and show an expired page with a one-click resend.
Make the GET request safe
Opening the link should show a page with a Confirm button that sends a POST, or accept repeat visits. This stops scanners from consuming the token.
Keep the route stable
If you rename the route, keep a redirect from the old path that preserves the query string.
Check where the user system sends the link
If you use Webflow memberships or a third-party auth tool, confirm the confirmation page exists, is published and the domain matches the published site.
Check redirects
In Site settings > Hosting > 301 redirects, make sure no rule catches the verification path and drops the query string.
Check your members area settings
In the Wix dashboard, open the Members area settings and confirm the sign-up confirmation page is active and the site uses your live domain.
Review URL redirects
In SEO settings > URL redirect manager, remove rules that match the confirmation path.
Check member sign-up and domain
If you use Member Areas, confirm your primary domain is set under Domains so emailed links use it.
Review URL mappings
In Settings > Developer Tools > URL Mappings, remove rules that redirect the verification path.
app.get('/verify', async (req, res) => {
const { token } = req.query;
const record = await db.findVerification(token);
if (!record) return res.status(404).render('verify-invalid', { resendUrl: '/resend-verification' });
if (record.verifiedAt) return res.render('verify-already-done', { loginUrl: '/login' });
if (record.expiresAt < Date.now()) return res.status(410).render('verify-expired', { resendUrl: '/resend-verification' });
// Show a confirm button so link scanners that only load the page do not use the token
res.render('verify-confirm', { token });
});
app.post('/verify', async (req, res) => {
await db.markVerified(req.body.token);
res.redirect('/welcome');
});Before
- Link expires in 15 minutes
- Scanner opens the link and uses the token
- User sees a bare 404 with no next step
After
- Link valid for 24 hours or more
- Page needs a button press to confirm
- Expired or used links show a clear message and a resend button
Confirms on load
Leads or data lost
A security scanner loads the link first and uses the token. The real user then sees 'expired' or 'already used'.
Toggle the cause to see why one-time tokens on a plain GET request fail for some inboxes.
How to confirm it's fixed
- A fresh signup produces an email whose link uses your live domain
- Clicking the link straight away verifies the account
- Clicking it again shows an 'already verified' message, not an error
- An expired token shows a clear message and a working resend button
- The link works from a business inbox as well as a personal one
- The token is still in the URL after any redirect
- Server logs show no new 404s on the verification route
How to prevent it happening again
Day 1
A developer renames the verify route during a refactor.
Day 1
Signups still succeed and emails still send, so nothing looks wrong.
Day 2-5
Every new user clicks a link that returns 404 (example timings).
Day 6
Someone notices the activation numbers dropped and traces it to the route.
- Add the signup, email and click path to your release checklist
- Keep old routes as redirects that preserve query strings
- Store the public base URL in one setting and never hard-code hosts
- Set token expiry to a sensible length and document it
- Keep a visible resend option on every error state
- Test after changes to the email provider, link tracking, CDN or redirects
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your signup journey on a schedule, then follows the link in the verification email (the email_link check opens the link) and checks whether it lands on a working page. If it returns a 404 or an error, the failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.
Test traffic is marked with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent. It does not bypass CAPTCHAs or bot protection. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans include a 3-day free trial.
Questions people ask
Why does my email verification link say expired immediately?
The token lifetime may be very short, the server clock may differ from the one that created the token, or an email security scanner may have already opened the link and used the one-time token. Extend the expiry to at least 24 hours and make the page tolerate repeat visits.
Why is my verification link giving a 404 error?
The link usually points to a route that does not exist. Common reasons are a wrong domain or path in the email template, a route renamed in a deploy, or a redirect or cache rule that strips the token. Compare the link in the raw email to a working URL on your site.
Why does the verification link work for Gmail but not for company email?
Many company mail systems scan links in incoming mail by opening them. If your link confirms on a plain page load, the scanner uses the token before the person clicks. Show a confirm button that sends a POST so only a real click verifies the account.
How long should an email verification link be valid?
Many products use 24 hours or longer, but there is no single rule. Choose a window that fits how quickly your users check email, and always offer a resend option so an expired link is not a dead end.
How do I test my signup verification email link?
Sign up with a fresh inbox, click the link immediately, click it again, then try one after the expiry window. Also check it from a business address. You can automate this with a synthetic monitor that runs the journey and opens the email link on a schedule.
Can FunnelGuard tell me when my verification link breaks?
Yes. FunnelGuard runs the signup journey, opens the link in the verification email and alerts you if it does not land on a working page. The failure is re-checked from a second region first, and the alert includes a screenshot and a likely cause.
What should an expired verification link page show?
It should say the link has expired or was already used, and give a one-click button to send a new link. If the account is already verified, send the user to the login page instead of showing an error.