I
IanW
Hi,
I'd just like some advice on the best way to throw a 404 when
rewriting urls. The scenario is as follows:
My url is /products/redwidgets
This redirects fine to ~products.aspx?id=redwidgets
I then do a db lookup to see if redwidgets exists, but it doesn't. At
this point I want to throw a 404 error.
Should I create a 404.aspx page and server.transfer to that, or is
there some other way?
Thanks.
I'd just like some advice on the best way to throw a 404 when
rewriting urls. The scenario is as follows:
My url is /products/redwidgets
This redirects fine to ~products.aspx?id=redwidgets
I then do a db lookup to see if redwidgets exists, but it doesn't. At
this point I want to throw a 404 error.
Should I create a 404.aspx page and server.transfer to that, or is
there some other way?
Thanks.