Get 404 on all pages except landing page

Hi, @knycket. The site’s netlify.toml file used to contain this:

  from = "/*"
  to = "/index.html"
  status = 200

This is commonly referred to at Netlify as the “single page application (SPA) redirect rule”. There is a support guide with more details here:

However, at some point the netlify.toml file was modified and this redirect rule was removed from that file. That is why the 404s are occurring. If you add that redirect back and trigger a new deploy, that should fix the 404s.

If not or if there are other questions, please reply anytime.

1 Like