Domain-level redirect doesn't work as expected

Hi,

I want to redirect my old domain to the new one using the below setting in the _redirects file located in my root folder.

https://iammassoud.ir/* https://iammassoud.net/:splat 301!
https://www.iammassoud.ir/* https://iammassoud.net/:splat 301!

Also, I’ve added my old domain as an alias:

Unfortunately, iammassoud.ir → iammassoud.net doesn’t work.
Moreover, no other routes redirect as well.

The only redirect works as www.iammassoud.ir → iammassoud.net

Any help is appreciated.

How many redirects are in the _redirects file and how many redirects are shown as processed on the deploy?

E.G.

1 Like

The issue was that, _redirects was not in my build folder.
Though, instead of using _redirects, I used the below netlify.toml

[[redirects]]
  from = "https://iammassoud.ir/*"
  to = "https://iammassoud.net/:splat"
  status = 301
  force = true