I have spent days researching the internet and I can not find the answer.
I have abc.com website i got sub domain address with the help of .htaccess but How can i show different theme according to subdomain.
Explanation. User create sub domain flower.abc.com and vegetable.abc.com etc i get user selected theme the according to sub domain from database php but i can not know how can i change root link and root directory
directory
/index.php
//theme folder
flower/index.php
....../css/
...../js/
vegetable/index.php
....../css/
...../js/
etc more theme available
but when user vegetable.abc.com select theme vegetable then show theme vegetable when user select flower theme then show flower theme.
vegetable.abc.com/vegetable/index.php
to
vegetable.abc.com/index.php