Param in URL with Grav


We have sites with URLs like /search/value1/value2 where value1 and value2 are being parsed by search.php to process accordingly with apache/multiview. I’ve tried to google and search the forum, but I am not sure what’s the best way to approach this in Grav. We would really like to use Grav as we are looking for a CMS for our sites. Any good ideas besides rebuild the site in Grav from scratch?