Think adding something like this would do a job... RewriteRule ^/app/(.*)/([0-9]+)/?$ /app/index.php?action=$1&id=$2 [QSA,L]
Found this one today: http://www.daopay.com
Separate names with a comma.