How can I point my root domain example.com to a subdomain of another site subdomain.example2.com?

he subdomain is wildcard subdomain. I have cPanel root server access.

I just want to make it looks like Shopify. A Shopify store example.shopify.com can be accessible from store owners custom domain. Do we need to edit virtual host file or anything? We are using cpanel, Apache server.

  • I edited your comment into your post. If you have further updates, please use the "edit" feature yourself rather than commenting with additional info. – Stephen Ostermiller Sep 17 '19 at 13:28

You would use the cname DNS record for that

  • 4
    One sentence answers tend not to be very helpful. You should expand your answer to include more detail. – John Conde Sep 17 '19 at 11:49
  • Any example please? – Mahmud Sabuj Sep 17 '19 at 12:18
  • 1
    In addition to being a short answer, just creating a DNS record is not sufficient to solve the problem. – Stephen Ostermiller Sep 17 '19 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.