Welcome Guest, Not a member yet? Register   Sign In
regex help
#1

[eluser]Thorpe Obazee[/eluser]
How can I use the CI routing to figure out this.

Every URL with the controller, user, that does not have the method, 'register' and 'login' should be routed to 'user/view/$1

$route['user/[^register]'] = "user/view/$1";

I currently have this and I know this doesn't work. It produces a 404 when I go to 'user/username' but is ok when I go to 'user/register'.


Messages In This Thread
regex help - by El Forum - 10-26-2008, 10:44 AM
regex help - by El Forum - 10-26-2008, 03:58 PM
regex help - by El Forum - 10-26-2008, 04:37 PM
regex help - by El Forum - 10-26-2008, 06:24 PM
regex help - by El Forum - 10-26-2008, 06:32 PM
regex help - by El Forum - 10-26-2008, 06:45 PM
regex help - by El Forum - 10-26-2008, 06:52 PM
regex help - by El Forum - 10-26-2008, 06:53 PM
regex help - by El Forum - 10-26-2008, 06:54 PM
regex help - by El Forum - 10-26-2008, 07:37 PM
regex help - by El Forum - 10-26-2008, 08:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB