Routes regular expression

I'm looking to use the routes config to rewrite a url. I have managed to get this working as follows:

$route['events/([A-Za-z+]+)/(\d+)'] = "events/details/$1";

This allows me to use a url with the event name in it rather than the function details. The problem is that there are other functions in this controller that I want to use - eg. /events/index

Also this will work fine as the structure does not match the regular expression, however, if I use pagination on this page it does match the regular expression ie: events/index/10.

How can I change the regular expression to exclude index or any number of selected functions?

Messages In This Thread
Routes regular expression - by El Forum - 12-29-2009, 12:42 PM
Routes regular expression - by El Forum - 12-29-2009, 02:39 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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