title: Point subdomain to root of main site on cPanel
body: <p>I need to point a subdomain (sub.example.com) to the same root as the main site (example.com). So when someone accesses sub.example.com, the same homepage is displayed.</p>
  
  <p>I tried creating the subdomain and pointing it to /public_html instead of /public_html/sub, but if I access sub.example.com I get redirected to sub.example.com/cgi-sys/defaultwebpage.cgi, but if I access sub.example.com/index.php I get the right homepage.</p>
  
  <p>My question is, how to properly point a subdomain to the root of the main site on cPanel?</p>
  
  <p>Any help is very much appreciated.</p>