a year 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
a year 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.
a year ago
My tech stack is Strapi + Nextjs each on its on service. Thanks for quick response
a year ago
Oh then I'm probably spot on, you'd write middleware to check the path and send a redirect to the applicable domain.
