Welcome Guest, Not a member yet? Register   Sign In
Routing Question (:any)
#4

[eluser]CroNiX[/eluser]
You can also use a negative rule and exclude controllers. But yeah, once you set up a route, you need to set up routes for all controllers basically, or exclude them from routing like below. Otherwise catch-all routes using (:any) or (.*) will catch everything, including additional segments.

Code:
$route['((?!login|logout).*)'] = 'profile/view/$1';
If it's not "login" or "logout" send request to profile/view


Messages In This Thread
Routing Question (:any) - by El Forum - 08-13-2012, 09:04 PM
Routing Question (:any) - by El Forum - 08-13-2012, 10:12 PM
Routing Question (:any) - by El Forum - 08-16-2012, 06:39 AM
Routing Question (:any) - by El Forum - 08-16-2012, 09:46 AM
Routing Question (:any) - by El Forum - 08-16-2012, 01:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB