Get the latest tech news

Designing a website without 404s


How Pillser uses fuzzy matching to avoid preventable 404s on its website.

One of the ways I've done it is by using fuzzy matching to redirect users to the right place when they make a typo, a product is renamed, or the logic used to generate the URL changes. It is basically a fallback mechanism that queries the database to find the closest match to the URL. This way, I can manually override the redirect logic if I discover that the chosen supplement is not the correct one or not the most relevant substitute.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of website

website

Photo of 404s

404s

Related news:

News photo

Show HN: A website that tailors your resume for each job you apply for

News photo

After publishing an article critical of Israel, Columbia Law Review's website

News photo

Show HN: A website that can generate rap lyrics and songs with AI