By platform

Cloudflare Pages not found: direct links fail

The home page loads, then a refresh or a shared link to another page returns a not found page. The app draws that page in the browser, but the server looks for a file at that path and finds none.

5 visitors try to .
First test free with an accountRun it from your coding agent

Why does Cloudflare Pages show not found when I refresh a page?

A single page app draws its routes in the browser, so the server has no file for a path such as /pricing. A visit that starts at the home page and clicks through works, but a refresh or a direct link asks the server for that path and receives a 404. The fix is a fallback rule that serves the app's entry page for any path with no file, usually a _redirects file in the build output folder. A simulated visitor that opens the deep link directly shows the step where it stopped, with the not found page in the screenshot.

What this looks like in a report

Who
Nadia, comparing two pricing plans for a small team
How they arrived
Followed a link to the pricing page from an email
Where they stopped
Pricing page, when she opened the link directly

“The home page loaded fine, but the pricing link from the email gives a not found page. I tried refreshing, and it failed too. I assumed the link was bad, so I went looking for the plans elsewhere.”

The fix. Add a _redirects file to the build output with a rule that sends unknown paths to the entry page with a 200 status. Then deploy, and open the pricing link directly to confirm it loads.

An illustration. Run a test to see your own.See a real sample report

Deep links work from the home page and fail when typed

A single page app changes its address with script after the first load. Clicking a link updates the address without asking the server for a new page, so the visit looks fine. A refresh, a bookmark or a link from an email sends the browser to the server with that path, and the server looks for a file there. A route that exists only inside the app has no file, so it fails with a not found page. A wrong build output folder causes a related break, where even the home page fails because the entry page is not where the host looks.

  • Open a page other than the home page directly in a new tab. Does it show your content or a not found page?
  • Refresh a page that is not the home page. Does the same path fail?
  • Check the build output folder. Does it hold the entry page at its top level?
  • Look for a _redirects file in the build output, and check its rule for unknown paths.
  • Compare the route your app shows with the path the server receives when a visitor types it.

Which routes fail, and which ones never do

The home page usually works because it is a real file in the build, and the server finds it. Every other page in a single page app is a route the script draws, so it exists only after the app starts. A visitor who clicks a link inside the app never asks the server for that path, and so never sees the fault. A visitor who types the path, refreshes or opens a link from outside asks the server directly, and gets the not found page. If only deep paths fail, the fallback rule is missing. If the home page fails too, the build output folder or the deploy settings point at the wrong place.

The fallback rule and where it goes

A _redirects file placed in the root of the build output folder can hold a rule that matches every path. The rule /* /index.html 200 sends any path the server has no file for to the entry page, and the 200 status keeps the address the visitor typed, so the app can draw the right page. A redirect status would change the address and would not show the page. The file must sit in the folder your build writes, not in your source code, and the build must copy it there. Check the file after each build by opening the output folder, because a copy that never reached the output does nothing.

Check the output folder before you check the code

The build settings name an output folder, and the host publishes what is inside it. If that name points at a folder of source files, or at a folder one level above or below the built one, the entry page is missing and every route fails, including the home page. Compare the folder name in your build settings with the folder your build command writes to. A simulated visitor that opens the home page and then a deep page separates the two causes: a home page that loads with deep pages failing points to the fallback rule, and a home page that fails points to the output.

Mimiq is independent and not affiliated with the platforms it names. Names belong to their owners.

What you get with Mimiq

  1. 01

    Run it by hand, or on every pull request

    Paste a link and a task in the app and watch the visitors work. Or run them on every preview deploy: the GitHub Action comments on the pull request, any other CI can call the MCP endpoint, and your coding agent can run it too.

  2. 02

    Bugs and usability problems in one report

    The browser records errors and failed or slow requests on the step they happened. The visitors say where the wording or the steps confused them, and where they left.

  3. 03

    Visitors that behave like your audience

    Each visitor is a different profile with a reason to be there, matched to who the page is for, described by you, or built from your own customers.

  4. 04

    A prompt to fix each problem

    Every problem comes with a fix to paste into Cursor, Claude Code, Lovable or any coding agent, and one prompt hands over the top problems at once. Then send the same visitors through again.

  5. 05

    Follow every visitor

    See each visitor's whole path, step by step with screenshots, and what it was thinking at every step. Ask any visitor a question.

The browser records relevant JavaScript errors and failed or slow app requests encountered during the run, attached to the step where they occurred. The visitors are simulated: they find problems, they do not predict how many real people will convert.

A new route or a changed build folder can 404 old links

A new page, a renamed route or a changed build folder can send old links to a not found page while the home page still loads. The break stays hidden until someone follows a bookmark or an email link. After each deploy, open the links visitors use most directly, and run a simulated visit to a deep page. Paid credits let visitors open a protected preview, so a staging deploy can be checked before it goes live.

Starter

Try it on one launch

$9 once
120 credits, never expire

24 visitors, about 4 tests of 5

  • Visitors on your landing page, signup and checkout
  • Where they left and why, with a fix to copy for each problem
  • Run it in the app or on every pull request
  • Ask any visitor a question, included
  • Test accounts and protected previews
Buy 120 credits

Builder

Test every build

$19 a month
500 credits every month

100 visitors, about 20 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Builder

Pro

Test every release, as a team

$49 a month
1,500 credits every month

300 visitors, about 60 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Pro

Scale

Test at scale, every day

$149 a month
6,000 credits every month

1,200 visitors, about 240 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Priority support
  • Cancel anytime
Choose Scale
$0for your first test, with a free account (Google or email, no card). It includes 50 credits, enough for 10 visitors. After that a visitor uses 5 credits, and packs start at $9 for 120 credits.
See a sample report

Questions

Why does the home page work but other pages do not?

The home page is a file in the build, so the server finds it. Other pages are routes inside the app, which exist only once the app runs in the browser. A fallback rule hands the app to the server for those paths, so the right page appears.

Do I need a separate file for each route?

Not for a single page app. One fallback rule covers every route the app draws. Separate files belong to sites built as many pages, where each path has its own file in the output folder.

Can a simulated test find every broken route?

No. It opens the routes its task reaches and reports where each visitor stopped, with a screenshot. It does not list every route in your app, and it does not tell you how many visitors reach a broken one. Open your main links directly as well.

Why does the not found page show for some visitors only?

Visitors who reach a route through the app's own links never ask the server for that path, so they see it work. Visitors who type the path, refresh or open a link from outside do ask, and they get the not found page. The same route can pass for one and fail for the other.

Would a redirect rule fix this instead of a fallback?

Not for a single page app. A redirect sends the browser to another address, which changes what the visitor sees in the address bar and does not show the app's page. A rule that returns a 200 status serves the app at the address the visitor typed.

Keep reading

Send visitors and see what breaks first.

Your first test is free: sign in with Google or email and it starts right away. Last checked 2026-12-03.

5 visitors try to .