Welcome Guest, Not a member yet? Register   Sign In
Weird routing behaviour
#4

[eluser]mmackay[/eluser]
Everything now seems to be working, I've updated my .htaccess and routes code as follows:

Code:
RewriteRule ^([a-z0-9\-]{1,16})(/?)$ index.php/$1/user [L,NC]
RewriteRule ^([a-z0-9\-]{1,16})/audio/([a-z0-9\-]+)(/?)$ index.php/$1/user/audio/$2 [L,NC]
RewriteRule ^([a-z0-9\-]{1,16})/video/([a-z0-9\-]+)(/?)$ index.php/$1/user/video/$2 [L,NC]

Code:
$route['(:any)/user'] = 'user/index';
$route['(:any)/user/audio/(:any)'] = 'user/audio';
$route['(:any)/user/video/(:any)'] = 'user/video';

I'm pretty sure it's an oversight on my part along the way somewhere. Things started to work around the time I placed the character length limit on the .htaccess regex - although I don't know if this was the exact fix.

Thanks for reading and thanks to InsiteFX for the reply.

- Mike


Messages In This Thread
Weird routing behaviour - by El Forum - 02-11-2011, 05:46 AM
Weird routing behaviour - by El Forum - 02-11-2011, 05:52 AM
Weird routing behaviour - by El Forum - 02-11-2011, 05:57 AM
Weird routing behaviour - by El Forum - 02-11-2011, 08:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB