Forum Moderators: phranque
The simplest way to find out is to put a harmless redirect in the main site's .htaccess, and then test it from the subdomain -- something like redirecting a non-linked, non-existent page URL to google.com or similar.
For example, in example.com/.htaccess
RedirectMatch 302 /test-page\.html$ http://www.google.com/
Note that the RedirectMatch pattern is not start-anchored. That is to make it insensitive to the subdirectory's path, mainly because I'm not sure exactly what it would be or how it might vary depending on cPanel's implementation of the subdomain-to-subdirectory mapping.
Also, be aware that using cPanel and other "control panels" can destroy any custom .htaccess file you may have, because these control panels use templates to generate code, and can overwrite all or parts of your file. So if you have a custom .htaccess file, either always make a fresh backup of your .htaccess file and then copy/merge the new cPanel-created code into it manually, or don't use the cPanel functions that modify .htaccess.
Jim