3 ms·
If you can get a complete list of valid URLs, you can try to fuzzy-match the URL against that. If one real URL scores much better than all others, you can redir
by pmjordan 17y ago
If you can get a complete list of valid URLs, you can try to fuzzy-match the URL against that. If one real URL scores much better than all others, you can redirect, otherwise provide a 404 with a choice of the top matches. I'm not sure automatically redirecting from incorrect URLs is within the HTTP spirit, however.
- pkrumins 17y agoGood idea. I wrote this one down as well!
- tjr 17y agoIn addition to the above fuzzy-matching idea, you could also do something similar to Wikipedia, and for redirected pages, included a notice at the top like: Redirected from catonmat.net/artikle ...to let the user know that they did not type in the most preferred URL, so hopefully they will correct their mistake in the future.
- pkrumins 17y agoAlso a great idea. Thanks!