Well I'm working on a software that uses mod_rewrite to route everything to the index.php page, but it becomes problematic with subdomains such as subdomain.example.com. In theory, it should resolve to example.com/subdomain, but it does not work this way.
So I wonder, can anyone please let me know if theres a way to route subdomain.example.com to example.com/subdomain using .htaccess? Thanks.