Hello,
I’m trying to redirect traffic from site1 ‘https://alvarosaburido.com/’ to my new domain ‘https://alvarosaburido.dev’ site2 (both are registered externally but using Netlify DNS)
I added the following code to netlify.toml
file after checking Redirects and rewrites | Netlify Docs and Redirects and rewrites | Netlify Docs
[build]
command = "npm run build:lazyload && npm run export"
publish = "dist"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[redirects]]
from = "https://alvarosaburido.com"
to = "https://alvarosaburido.dev"
status = 301
force = true
After deploying successfully, if I go to alvarosaburido.com
it doesn’t seem to redirect.
It’s possible to do? I guess I did something wrong, but can’t tell what could be. Also not an expert on redirects, first-time I’m trying to configure this.
Thanks in advance