Routing question

#2
[eluser]Denzel[/eluser]
Well, I take it you want the community_site_name to be the first parameter in front of any of the other parameters such as anything and else. Assuming you want to rearrange the URL as such:

www.site.com/index.php/community_site_name/class/function/anything/else

becomes

www.site.com/index.php/class/function/community_site_name/anything/else

then you could use the following basic routing mechanism:
Code:
$route['(:any)/(:any)/(:any)/(:any)'] = '$2/$3/$1/$4';
This route will perform the rearrangement above.


Messages In This Thread
Routing question - by El Forum - 04-05-2012, 10:48 AM
Routing question - by El Forum - 04-05-2012, 06:18 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.