I just added a redirection to my netlify site khepri.netlify.app to my main domain (infinitythecalculator.com).
This is my whole netlify.toml file:
[build]
publish = "dist"
command = "vite build"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[redirects]]
from = "https://khepri.netlify.app"
to = "https://infinitythecalculator.com"
status = 301
force = true
[[headers]]
for = "/manifest.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"
[[headers]]
for = "/assets/*"
[headers.values]
cache-control = '''
max-age=31536000,
immutable
'''
I know my site has service workers and that sometimes doesn’t play nice with redirections, but I’ve nuked the data and tried navigating back various times, and I’m not seeing any 301 redirections in the chrome developer tools.