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: gifted-antelope-58b104.netlify.app

https://symphonious-cannoli-dd52c0.netlify.app/

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

https://www.rackzgallery.com/
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.

Hi!
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:

[[redirects]]
from = “https://symphonious-cannoli-dd52c0.netlify.app/*”
to = “https://www.rackzgallery.com/:splat
status = 301
force = true

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

What am I missing?
Thanks

Hi Garito,

Thanks for reaching out!

I’m unable to replicate the issue as the custom domain, rackzgallery.com, is no longer hosted on Netlify. I am not seeing an issue while going to https://symphonious-cannoli-dd52c0.netlify.app/.

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 rackzgallery.com 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