you would simply need to check that the path for it is the same but in many cases this will not work as many sites like wordpress run rewrite rules and then it would redirect back to main domain...so you would need to run multisite config if wordpress is in question