CodeIgniter Forums

Full Version: Help with routes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

El Forum

[eluser]wiredesignz[/eluser]
_remap() is still passed the controller method by the router, but this was actually the fix for your first problem.

El Forum

[eluser]louis w[/eluser]
@mironcho: No worries, I missed it myself on the paste too.

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

This works for /admin/foo requests. I guess I will just use this one instead of the more compact.

El Forum

[eluser]louis w[/eluser]
NEVERMIND!

They both work. I do not know why it wasn't working for me before. Thanks for the help.
Pages: 1 2