How to change netlify.app link to redirect to custom domain if the domain is already linked to netlify

I would prefer not to have my .netlify.app (cccsolutions.netlify.app) and custom domain (cccsolutions.ca) as duplicates. I have tried doing this to netlify.toml but I can’t change it because

[[redirects]]
from = “/*”
to = “/index.html”
status = 200

needs to remain for my site to work properly (single page application).

Also tried to change my _redirects file and didn’t work.

It seems like it just leads to an infinite loop and my connection times out if i also redirect from netlify to the custom domain.

@Tankman61 What you’re looking for is a “Domain Level Redirect” see:

https://docs.netlify.com/routing/redirects/redirect-options/#domain-level-redirects

Also pay attention to the Rule Processing Order if you’re specifying redirects in multiple places:

https://docs.netlify.com/routing/redirects/#rule-processing-order