Welcome Guest, Not a member yet? Register   Sign In
Displaying a 404 if wrong number of segments passed to controller function?
#4

[eluser]John_Betong_002[/eluser]
>>> ... or perhaps I’ve just overlooked something obvious. Any insight would be appreciated. Thanks!

http://ellislab.com/codeigniter/user-gui...uting.html

First try routing all your anticipated URLs.

Followed by a catchall:
Code:
// default route
  // anticipated routes

  // finally the Daddy of them all
  $route["(:any)"] = "c_error/index/$1";
 


Messages In This Thread
Displaying a 404 if wrong number of segments passed to controller function? - by El Forum - 05-26-2011, 11:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB