I previously had two custom domains (using Netlify nameservers) for my application: .io and .com. The .io was the primary domain. The .com domain was redirecting to the .io.
I decided to stop paying for the .io domain. I thus removed the .io domain completely from my Netlify config: I deleted it from the DNS Panel and marked the .com domain as the new primary domain.
I did this several weeks ago but the .com domain is still redirecting to the (not existing anymore) .io domain.
Hi, @louisantoinem, this redirect is happening because there is a rule being made to add it.
Please check the file found at public/_redirects (relative to the base directory of the repository). I think you will find the rules there looking similar to this: