Static site subpages return 404 only with custom domain

PLEASE help us help you by writing a good post!

  • we need to know your netlify site name. Example:

  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
The message is 404 on subpages

  • Build problems? Link or paste the FULL build log & build settings screenshot

It is a static site without. build process

The better the post - the faster the answer.

I’m trying to deploy a static site on this github:

When I access it with the netlify domain it works just fine but if the custom domain is used, the subpages return 404

If I add a netlify.toml with this content:

from = “*”
to = “
status = 301
force = true

the netlify subdomain redirects to the custom domain and doesn’t work

What am I missing?

Hi Garito,

Thanks for reaching out!

I’m unable to replicate the issue as the custom domain,, is no longer hosted on Netlify. I am not seeing an issue while going to

For DNS, you can follow our Support Guide here:

You’ll want to configure either External DNS or Netlify DNS, not both at the same time.

Let us know if you continue to have issues when adding the custom domain.

Hi @Melvin !
Thanks for taking the time to help me

Since resolves just fine, one can conclude that there is no DNS issue, don’t you think?

In my opinion, the webserver at netlify is not properly configured or the subpage is not deployed but, since with the netlify domain works correctly, only the webserver configuration options seems to be the troublemaker

How wrong am I?

My bad, you are right it is a DNS issue