Am I correct in saying this is not as simple as creating a rewrite rule on apache? Possibly an AEM servlet? A servlet that uses a request filter to fetch the query parameter and form the dynamic URL and 301 redirect to new URL. I was also trying to do these with Resource resolver mappings (etc/map). Could it be done just with Resource resolver mappings (/etc/maps)?
You'll need to use a sling servlet with a selector. Your selectors will be firstname, lastname. Your sling servlet annotation will look like this: @SlingServlet(resourceTypes = "myBrand/components/pages/myPeoplePageType", selectors =