Multiple domains - one wesbite
vitakili
PROOP

2 years ago

Hey,

would it be possible on Railway to manage multiple domains for one website? For example, user enters rental.com/contruction so he will be transfered for the contruction.com and vice versa contruction.com/rental

Its strange requirement, but client already bought few domains as he provides rental of mini excavators and construction works

4 Replies

2 years ago

This isn't something the platform itself supports, but there's nothing stopping you from writing some middleware or something to achieve this simple redirect.

What's your tech stack, and (Railway) project architecture going to look like? perhaps I could give you a little more direction here.


vitakili
PROOP

2 years ago

My tech stack is Strapi + Nextjs each on its on service. Thanks for quick response


2 years ago

Oh then I'm probably spot on, you'd write middleware to check the path and send a redirect to the applicable domain.


vitakili
PROOP

2 years ago

Okay, thanks a lot will look into that


Loading...