But i do not use subdomain, i use subdirectory - as subdomain do not play at all on my setup. Even tested your approach on subdomain just for fun and named the folder sub.example.com
- even if i would never do this just because of too much renaming on deploy.