I have the following structure:
example.com
(Root), app.example.com
(actual application)
Users can access their profile as: app.example.com/view/username
for example
Is there a way I can show the content of app.example.com/view/username
in username.example.com
directly?
I tried creating a wildcard subdomain but it doesn’t seem to work as right now I have 2 htaccess files (one for example.com
and the other for app.example.com
).
Thanks in advance!
Edit:
File structure is Angular’s (it has Routing already) so it doesn’t make a difference
OS: CentOS 7, using Apache