I added the following code to
netlify.toml file after checking https://docs.netlify.com/routing/redirects/ and https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file:
[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