I have looked around a bit and found similar questions but I can't seem to find one addressing this exactly.
I have a domain hosted with GoDaddy www.example.com. I have hosting set up with hostgator on a subdomain: abc.differentsite.com
I want to point www.example.com's nameservers to my hosted subfolder at abc.differentsite.com.
Pointing just to the name servers would in theory go to the main website and not the subdomain folder. I could use forwarding with masking, but I would prefer to not go that route.
I know design firms do this as they have one hosting account and host multiple sites then just direct name servers to the correct place but I don't know how to tell it to find the subfolder and not the main one.
Thanks in advance, sorry if this is posted elsewhere I looked but didn't see this exact situation.
It's called 'addon domain' in CPanel; you can specify any document root folder when creating it, including the folder of your existing subdomain.
Alternatively, there are 'parked domains' you can redirect to any URL (even if you don't own the latter).