Way to autoredirect www to root domain?

austinkettnerPRO

7 months ago

If I am adding www and root level domains, how would I make sure www redirects to root without code level management? Can this be done via nixpacks?

Awaiting User Response

1 Replies

7 months ago

Hello!

Nixpacks can't do that since it is just a builder, nothing to do with networking.

Without doing this in code, I would recommend doing it in Cloudflare, and in fact we have docs for that! -

https://docs.railway.com/guides/public-networking#adding-a-root-domain-with-www-subdomain-to-cloudflare


Status changed to Awaiting User Response railway[bot] 7 months ago