Settings

Theme

Show HN: Fuzzy-redirect- preventing 404s by auto-redirect to closest valid route

github.com

1 points by kuberwastaken a month ago · 0 comments · 1 min read

Reader

needed this for some of my own websites so I made my very first npm library today :)

the idea is pretty simple but useful - if a user lands on your website and encounters a 404, this uses a basic fuzzy URL matching to redirect to the closest valid URL very low effort to set up, just 46kb, no dependencies and I'm quite happy with it !

happy to hear feedback/ potential improvements

https://www.npmjs.com/package/fuzzy-redirect https://github.com/Kuberwastaken/fuzzy-redirect

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection