Welcome Guest, Not a member yet? Register   Sign In
How do I handle invalid controllers
#5

[eluser]Michael Wales[/eluser]
ew.. no no no - you should show a 404! The user is requesting a resource that doesn't exist, that is the definition of a 404.

By not throwing a 404 and instead redirecting to a controller you will get massive reductions in pagerank for duplicate content. Essentially, any of your competitors could create a page that links to 100 or so random, invalid controllers on your site, Google/Yahoo/MSN now see that 100 of your pages are exactly the same and they deduce that your site is nothing but spam.

You don't have to go with the default browser 404 design, you can design up the page however you want, add some helpful tips to the user (like links to what they may have been trying to access), etc. See this link for ideas: http://www.smashingmagazine.com/2009/01/...more-time/


Messages In This Thread
How do I handle invalid controllers - by El Forum - 05-10-2009, 04:19 AM
How do I handle invalid controllers - by El Forum - 05-10-2009, 04:27 AM
How do I handle invalid controllers - by El Forum - 05-10-2009, 04:49 AM
How do I handle invalid controllers - by El Forum - 05-10-2009, 04:56 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 06:12 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 07:54 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 08:05 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 08:33 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 10:05 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 12:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB