Welcome Guest, Not a member yet? Register   Sign In
Proper 404 for non-existing element
#1

[eluser]Unknown[/eluser]
Hi there!

I have a website that shows interesting places in my city. Places are available under URLs:

mydomain.com/place-3333 (where 3333 is place's id).

However, if you manually type in your browser some fake ID like:

mydomain.com/place-33336756756

then application returns code 200 and shows a view without any data in there. This is not good in terms of SEO.

My model returns false if there is no such place in the database. In the controller, I have problem with proper redirecting and sending 404 error.

Could please sombody help me with it?

cheers
pete




Messages In This Thread
Proper 404 for non-existing element - by El Forum - 11-28-2012, 01:28 AM
Proper 404 for non-existing element - by El Forum - 11-28-2012, 03:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB