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

This is some impressive detective work. Especially considering how common the "redirect all wrong URLs to index/search" behavior is.


There is nothing wrong about redirecting a missing page to a known index or search page. It's only if you decide to also return a 200 OK message with the request that you are breaking the web. 404s can have valid content, you don't have to blackhole your user into nothingness. At the same time, your 404 page shouldn't change the state of your application's transaction either (like generating a new session ID).




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

Search: