Pointing subdomain to magento installed on main domain -Multi domain Magento

regardless if it’s a test domain or not, I agree a simple alias is the way to go.
with that the sub-domain points directly to the magento docroot and magento itself can take care of the rest. no further rewrite/redirect needed.

theoretically you could also just symlink folders on the filesystem layer though…