AEM 6.3: Bad Request when replacing dot in selector for slash
I am trying to make my product details page have the following format:
https://stage.aemsite.com/en/product-details/some-product
We use selectors for our product details so I understand AEM won't be able to interprete this, my idea was to use the dispatcher to allow a passthrough to the correct format https://stage.aemsite.com/en/product-details.some-product, but this is resulting in a bad request. I tested this on https://technicalseo.com/tools/htaccess/ and it should technically work.
RewriteCond %{REQUEST_URI} ^/([a-z]{2})/product-details/([^?]*)(/?)$
RewriteRule ^ https://%{SERVER_NAME}/%1/product-details.%2 [PT,L,NC]
Any idea?