How works redirecction in railway for react
darkeronce
HOBBYOP

2 years ago

I need to redirect form https://web.com to https://www.web.com
anyone knows how to do it?

thanks.

app id: 992cf34a-815d-4283-8440-0049e897a74e

12 Replies

2 years ago

how are you currently serving your react app?


darkeronce
HOBBYOP

2 years ago

railway[back, front], cloudfflare.


2 years ago

right but how have you configured railway to serve your frontend


darkeronce
HOBBYOP

2 years ago

this?


2 years ago

no, show me your deployment logs please


darkeronce
HOBBYOP

2 years ago

this?


2 years ago

yes, you are using serve, serve does not allow you to setup redirection rules, you would need to do the redirection via cloudflare page rules.
but may I ask why you want to redirect to www?


darkeronce
HOBBYOP

2 years ago

i think becouse here in chile all webs company work with that


2 years ago

okay it's your preference


darkeronce
HOBBYOP

2 years ago

yep but how can i redirect form cloudflare?


2 years ago

as mentioned, page rules


darkeronce
HOBBYOP

2 years ago

man you should work for the nasa xD


Loading...