Domain registered elsewhere point to WordPress site on InMotion server
I'm developing a Wordpress site in a temporary directory on a shared business hosting server. Is it possible to point a domain registered elsewhere to that temporary folder with the correct domain and links correctly applied to the Wordpress posts, pages, photos, etc... For instance if the Wordpress site I'm developing is in this folder: mainexampledirectory/public_html/example. (So the WP site is currently www.mainexampledirectory/example). If I modify the DNS records to point mydomainonanotherserver.com to ours, will the WordPress homepage come up as mydomainonanotherserver.com or mainexampledirectory.com/example? And will mainexampledirectory.com/example/about come up as mydomainonanotherserver.com/about?