Skip to content

How do I put a Remix app behind a URL rewrite #2955

Closed Answered by sergiodxa
31i0t asked this question in Q&A
Discussion options

You must be logged in to vote

Right now it's not possible, even if you did the rewrite server side your app will break client side because the router will not know about your rewrite, if any the only way to keep it working would be by not rendering the Scripts component and only sending HTML so the only router that matters it the server side one, but I doubt that's something someone wants to do.

This would have to be supported in Remix Router and React Router first so it can then be ported to Remix Router by adding some export or configuration in remix.config.js.

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@DevOfManyThings
Comment options

Comment options

You must be logged in to vote
5 replies
@srivastava-abhijeet
Comment options

@franklinjavier
Comment options

@franklinjavier
Comment options

@srivastava-abhijeet
Comment options

@landsman
Comment options

Comment options

You must be logged in to vote
4 replies
@DevOfManyThings
Comment options

@paul-vd
Comment options

@kiliman
Comment options

@paul-vd
Comment options

Answer selected by sergiodxa
Comment options

You must be logged in to vote
1 reply
@silouanwright
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet