Welcome Guest, Not a member yet? Register   Sign In
Help with routes
#1

[eluser]louis w[/eluser]
This is what I have in my routes files:

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

I want my site to forward any requests besides ones to /admin/ANYTHING to the page controller.

/admin/ would go to /admin/
/about/ would go to /page/about/

etc.

The second part works, but if i go to /admin/ it does not forward to the admin controller. If i take off the two routes /admin does work.


Messages In This Thread
Help with routes - by El Forum - 04-23-2008, 12:07 PM
Help with routes - by El Forum - 04-23-2008, 02:38 PM
Help with routes - by El Forum - 04-23-2008, 02:44 PM
Help with routes - by El Forum - 04-23-2008, 03:03 PM
Help with routes - by El Forum - 04-23-2008, 03:06 PM
Help with routes - by El Forum - 04-23-2008, 03:11 PM
Help with routes - by El Forum - 04-23-2008, 03:35 PM
Help with routes - by El Forum - 04-23-2008, 03:40 PM
Help with routes - by El Forum - 04-23-2008, 03:43 PM
Help with routes - by El Forum - 04-23-2008, 03:44 PM
Help with routes - by El Forum - 04-23-2008, 03:46 PM
Help with routes - by El Forum - 04-23-2008, 03:51 PM
Help with routes - by El Forum - 04-23-2008, 03:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB