Why this wireframe works | 404 page with similar-page suggestions
It shows the URL that was opened, as is
Seeing what they tried to open helps people notice their own typos. The URL is shown exactly as typed inside a light box.
It suggests close pages from the words in the URL
Even with a typo like “servise” or a URL from before a restructure, part of the words remains. Up to three close pages are listed from those words, closest first.
The closest suggestion gets a badge
With several options, people are unsure which to pick. The closest one is marked “Closest match” to show what to look at first.
The search box is prefilled for when the suggestions miss
Some people will not find their page among the suggestions. A search box filled with the word from the URL lets them search right away.
Common mistakes when building it
Redirecting automatically to the closest suggestion
If the suggestion is wrong, people end up reading a different page without knowing what happened. Use a 301 redirect only when the mapping is certain; otherwise show the pages as suggestions and let people choose.
Showing too many suggestions
Listing ten or more similar pages makes it no different from ordinary search results. Narrow it to three at most, closest first.
Writing the opened URL straight into the page
Writing the characters of the URL into the page as they are can let a malicious script run. Escape the URL as text before displaying it.
An empty heading shows when there are no suggestions
If only the heading “Were you looking for one of these?” is left with nothing under it, the page looks broken. When there are no suggestions, leave out the whole heading and guide people with search and popular pages.
Frequently asked questions
How do I produce the suggestions?
One way is to run a site search with the words in the URL and show the top results; another is to find pages whose URLs are spelled similarly. If you restructured the site, a table mapping old URLs to new ones is the most reliable source.
If I know the old URL, should I redirect instead of suggesting?
Yes. If each old URL maps to exactly one new URL, redirect with a 301. The 404 page with similar-page suggestions is for cases where the mapping is unclear, or for people who arrived through a typo.
Isn’t it a problem if the “Closest match” is wrong?
It can be wrong, so the heading asks “Were you looking for one of these?” rather than stating it. Put a search box under the suggestions so people can search again right away when they are wrong.













