Welcome Guest, Not a member yet? Register   Sign In
Home page routing with $route['(:any)']
#5

[eluser]Phil Sturgeon[/eluser]
There is not much point listing all the controllers that should work normally, just list the special one.

Use $route['404_override'] = 'pages'; so all 404 calls go to the pages controller, then use _remap() to show the specific page.

AoiKage: Those routes were not wrong. You only need to wrap :any with () if you want to return the segment and use it in the value. ie: $1. If you are just comparing the pattern of the URL and not re-using sements then there is no need to wrap the :any.


Messages In This Thread
Home page routing with $route['(:any)'] - by El Forum - 02-27-2011, 02:24 PM
Home page routing with $route['(:any)'] - by El Forum - 02-27-2011, 03:53 PM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 12:22 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 01:16 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 03:44 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 04:00 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 04:04 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 04:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB