Need help with url rewrite


Im using Nextcloud 12.0.1 on debian with apache2. Everything is working quite well! Im using external shared links for some folders: http://subdomain.domain.tdl/s/folder-ID
I already activated the rewrite mod in the config.php to “delete” the index.php in the url.
No I also would like to have the “/s” in the url replaced.
Something like this: http://subdomain.domain.tdl/any_name/folder-ID
Is this possible? If yes, how can I implement this url rewrite?!

Thanks for your help!

Kind regards