I have a Godaddy hosting plan with a domain (let's use examplegodaddy.com). I use that as my main domain with a Wordpress site. I created a subdomain inside the cpanel (let's call it example.com/subdomain) and installed wordpress on it. Tested it and it works okay.
Few years back, I purchased a domain from Name.com which I renew every year (let's call it examplename.com).
Now I want to use examplename.com as the address for the subdomain example.com/subdomain.
I've been able to configure the A records and nameservers to examplename.com so that it will point to example.com/subdomain. But what happens is that when I type examplename.com in the browser, the address becomes "example.com/subdomain"
Is there anyway to make the browser load the example.com/subdomain wordpress site but the address is "examplename.com" ?
I've been trying for almost a week and had no luck. I'm also new to hosting, domains, servers and other stuff related to this. Any help would be much appreciated. Thank you in advance for the answers!