R
Railway4mo ago
Pipenho

How works redirecction in railway for react

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
Solution:
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?...
Jump to solution
13 Replies
Percy
Percy4mo ago
Project ID: 992cf34a-815d-4283-8440-0049e897a74e
Brody
Brody4mo ago
how are you currently serving your react app?
Pipenho
Pipenho4mo ago
railway[back, front], cloudfflare.
Brody
Brody4mo ago
right but how have you configured railway to serve your frontend
Pipenho
Pipenho4mo ago
this?
No description
Brody
Brody4mo ago
no, show me your deployment logs please
Pipenho
Pipenho4mo ago
this?
No description
Solution
Brody
Brody4mo 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?
Pipenho
Pipenho4mo ago
i think becouse here in chile all webs company work with that
Brody
Brody4mo ago
okay it's your preference
Pipenho
Pipenho4mo ago
yep but how can i redirect form cloudflare?
Brody
Brody4mo ago
as mentioned, page rules
Pipenho
Pipenho4mo ago
man you should work for the nasa xD