Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Redirect #17

Closed
Ayal1 opened this issue Nov 8, 2021 · 2 comments
Closed

404 Redirect #17

Ayal1 opened this issue Nov 8, 2021 · 2 comments
Labels
question Further information is requested

Comments

@Ayal1
Copy link

Ayal1 commented Nov 8, 2021

I'm trying to find a way to get a 404 redirect set up, I already have a root (or "/" in the links.json) but I also want any unassigned key/slug. Is this possible and if not, can that functionality be added?

@jstayton jstayton added the question Further information is requested label Dec 28, 2021
@jstayton
Copy link
Member

Hey @Ayal1,

Sorry for the delay.

It depends on how you're hosting the static site generated by Suri. For example, with Vercel, you can output a 404.html file. Other providers have similar setups.

Hope that helps!

@Ayal1
Copy link
Author

Ayal1 commented Dec 28, 2021

I'm hosting on render and they have a "Redirects/Rewrites" tab for the static site but adding a wildcard (*) just makes every link forward to the same destination instead of only applying after all the ones in links.json. I can't find anything as to how to set it so it only does that after it checks if the link exists in links.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants