If you notice that “action” is equals to “details” which is the third action variables in the calendar folder. There are three variables (in-order) written in switch method in the calendar/index.php file. Each variables represents each page and these are:
view-calendar
list-monthly-events
details
I was able to find answers on the first two (view-calendar & list-monthly-events) by the following scripts
While cp is quite correct that you can’t repeat a regex and expect Apache to guess which of three options it’s supposed to respond to, there is a much better way to do this cleanly (but ONLY if the second key/value pair isn’t changed): replace ([a-z]+) with a list, i.e., (view-calendar|list-monthly-events|details).
Unfortunately, you’ve elected to change from a null second key for details to city_id (without a value) and m for list-monthly-events to eventId for view-calendar (or did I get those backward?). That will require the [a-z]+ to be specified in all cases (to distinguish between redirection options).
Additionally, NEVER use the No Case flag when matching {REQUEST_URI} strings as they ARE case sensitive!