Welcome Guest, Not a member yet? Register   Sign In
Login and Route nightmare!
#2

[eluser]CroNiX[/eluser]
You can use a negative rule and declare all of the controllers in it that you don't want affected, and if it isn't one of them to process your (:any) rule. Then you don't need to create additional rules for your other controllers that you don't want to have special routes.

Basically something like:
Code:
$route['((?!admin|login).*)'] = 'site/index/$1';

If the first segment is "admin" or "login", it won't match the rule so it will process as a "normal" CI request.



Messages In This Thread
Login and Route nightmare! - by El Forum - 04-24-2012, 11:27 AM
Login and Route nightmare! - by El Forum - 04-24-2012, 11:52 AM
Login and Route nightmare! - by El Forum - 04-25-2012, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB