Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm a big fan of writing little bits of code into my URL routers that check for pages and try to correct typos. So if someone types https://some-awesome-site.org/jhon-davisdon it will check and correct it to /john-davidson. What's nice is always delivering the "canonical" link rel when you serve the correct page that way, too. I make the assumption that people still try to type links, sometimes ;)
 help




Hah. Cool. Similar. But I implement it usually by having the whole page hierarchy in a SQL table and using wildcards.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: