Welcome Guest, Not a member yet? Register   Sign In
Routing Question
#4

[eluser]gungbao[/eluser]
new question:

Code:
$route['(.*)'] = "controllerA/actionA/$1";


does route anything to controllerA, actionA giving actionA-first parameter alle the $1.

this works wonderful for

domin.com/my-first-blog-entry
domin.com/my-second-blog-entry

...

now, I want to keep this rule for any-URL that does not match my controllerB
how can I negate controllerB from beeing matched from the route-rule?

Code:
$route['^(^controllerB)(.*)'] = "controllerA/actionA/$1";

won't work and i cannot find the correct posix-regex... stupid me Smile

pls. could anyone help me?
greetings to all,
christoph


Messages In This Thread
Routing Question - by El Forum - 10-06-2008, 03:54 PM
Routing Question - by El Forum - 10-06-2008, 08:27 PM
Routing Question - by El Forum - 10-07-2008, 03:22 PM
Routing Question - by El Forum - 10-15-2008, 09:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB