wolfman Kalecgos
Indeed I'm one step in the right direction now, but not fully there yet !
If I try with an empty folder (www.mydomain.com/emptyfolder) I can properly make it root with the following settings (and no redirection):
subdomain: empty
domain: mydomain.com
document root: public_html/emptyfolder
When I then browse to https://empty.mydomain.com the url stay as-is, and I see the content of my emptyfolder.
But when I do the same for my public Flarum folder with the following settings:
subdomain: forum
domain: mydomain.com
document root: public_html/flarum/public
Unfortunately when I browse to https://forum.mydomain.com the url gets rewritten as https://forum.mydomain.com/flarum/public
So I suppose Flarum is doing something to rewrite the url, despite flarum/public being considered as root in the subdomain settings ?