2 years ago
Hi,
I would like to know how to redirect users that try to access my website throught the url that I previously used from Railway https://matias-larralde.up.railway.app/ to my new url https://matias-larralde.xyz/.
I can't do it with my DNS provider, Namecheap, because I don't own the previous domain https://matias-larralde.up.railway.app/.
I hope you can help me.
Best regards,
Matias Larralde
1 Replies
2 years ago
you didn't mention what kind of app you are running so I can only give you an extremely generalized answer.
your app itself would need to read the host header upon an incoming request, and if it's anything other than your custom domain, redirect it back to the custom domain while keeping the path in tact. again I don't know what kind of app this is so I can't go into much more detail about how this would be implemented.