I am looking for the way I can use Rewrite Base in htaccess with regular expression.
I have now
RewriteEngine On
RewriteBase /api/v1
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]
But I need to have base url as /api/v1 and /api/v2 maybe /api/v3 in the future
How can I achieve this ?