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

I'm not really 'up' on involved rules with respect to web programming / interfacing with Apache, but is it standard practice to return a 404 when your search finds no hits? Technically it's not a 'page not found.'


It would require extra programming, so is not done unless you think of it/get a special request for it.

Should you use a 404? I could see arguments both ways. A "no results" result, is still a result. So it's not a 404.

I would do a 404 if you try to link to a product that does not exist, but not for a zero results found page.

BTW madars don't use url shorteners here - even for really long ones.


It really should have a

<meta name="robots" content="noindex,nofollow"/>

in the header. That's the proper way to not allow a page to be indexed.


Google doesn't, so I'm not sure that they can hold it against others.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: