Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

How do you add routes to individual files without 301 redirects? #546

Open
fessehaye opened this issue May 26, 2021 · 0 comments
Open

How do you add routes to individual files without 301 redirects? #546

fessehaye opened this issue May 26, 2021 · 0 comments

Comments

@fessehaye
Copy link

Trying to used GCDWebserver for a React SPA. To handle the react router I would like three routes ("/" "route1/12343", "route2/23453") to all point to the bundled index.html. I have tried using addHandler and GCDWebServerDataResponse with redirects to address this but I lose old url when it redirects.

Is there anyway to do the redirect with a 200 status code instead?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant