Alias subdirectory as a subdomain on root domain

I have the following structure: (Root), (actual application)

Users can access their profile as: for example

Is there a way I can show the content of in directly?

I tried creating a wildcard subdomain but it doesn’t seem to work as right now I have 2 htaccess files (one for and the other for

Thanks in advance!


File structure is Angular’s (it has Routing already) so it doesn’t make a difference

OS: CentOS 7, using Apache