“Page Not Found” Error Despite Correct DNS and Redirect Setup

Hello Netlify Community,

I’m experiencing a “Page Not Found” error on one of my sites hosted through Netlify. I’ve carefully followed the recommended DNS and redirect configurations, but the issue persists.

Setup Details:

  1. Netlify Site Name:

• Example: example-site-name.netlify.app

  1. DNS Configuration:

• Nameservers are set to Netlify’s recommended values.

• A record check shows unexpected IP addresses that don’t align with typical Netlify settings.

  1. Redirect Setup:

• I’m using a netlify.toml file to manage redirects. Here’s an example rule:

[[redirects]]

from = “/”

to = “https://[my-target-domain]/main-page”

status = 200

force = true

Error Details:

• When accessing the site via the custom domain, I receive a “Page Not Found” error.

• The full build logs are included below for reference.

What I’ve Tried:

• Verified DNS and nameserver settings.

• Adjusted redirect rules in the netlify.toml file multiple times.

• Cleared the cache and redeployed.

I’ve also checked through the Ask Netlify AI tool and relevant support guides, but haven’t found a solution that addresses this specific issue. Any guidance would be much appreciated!

Hi there! I’m seeing your site successfully load at https://example-site-name.netlify.app/.

However, it doesn’t look like there’s a custom domain attached to that site. If you’d like to use a custom domain, you need to both configure DNS records and add the domain to your site. That can be done by navigating to the site > domain management > add a domain.