Welcome Guest, Not a member yet? Register   Sign In
HTACCESS - A Complex Problem
#5

[eluser]mddd[/eluser]
Did you put them in the right order? If you put the second route first, it will match EVERYTHING. So then you'll never get to the auth controller.
Always put the most specific route first and the most generic route last.

With the routes I described, anything starting with 'auth/' should be going to the auth controller.

Looking at it again, I do see a mistake on my part: I wrote
Code:
$route['auth/(.*)']
which will match only things starting with 'auth/'. Not 'auth' by itself. So it's better to write
Code:
$route['auth(.*)'] = 'auth$1';
That way the route will also match if you just have 'auth' in the url.


Messages In This Thread
HTACCESS - A Complex Problem - by El Forum - 07-21-2010, 05:00 AM
HTACCESS - A Complex Problem - by El Forum - 07-21-2010, 06:30 AM
HTACCESS - A Complex Problem - by El Forum - 07-21-2010, 07:07 AM
HTACCESS - A Complex Problem - by El Forum - 07-22-2010, 03:40 PM
HTACCESS - A Complex Problem - by El Forum - 07-23-2010, 12:49 AM
HTACCESS - A Complex Problem - by El Forum - 07-23-2010, 08:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB