Home
Support Forums

Auto redirect to custom doman from netlify subdomain

  • netlify site name tradingpnl.netlify.app
  • I have purchased and configured tradingpnl.in. Can I have an auto redirect from tradingpnl.netlify.app to tradingpnl.in?

Welcome to the forums @pkvpraveen

Indeed you can. Have a look at Domain-level redirects in Netlify docs for details and example.

Thank you
Your suggestion was very helpful. I configured the redirect like this

[[redirects]]
  from = "https://tradingpnl.netlify.app"
  to = "https://tradingpnl.in"
  status = 301
  force = true

1 Like

You’d probably need to make it like:

[[redirects]]
  from = "https://tradingpnl.netlify.app/*"
  to = "https://tradingpnl.in/:splat"
  status = 301
  force = true

So you can get other URLs too.

1 Like