Just trying to sort out/understand a few issues relating to sub-domains and add-on domains:
- Is there a way to prevent a sub-domain http://[B]sub[/B].example.com from also being accessible at its internally redirected path http://example.com/[B]sub[/B] ?
- Why does cPanel create an add-on domain as a sub-domain of the primary domain? That is, if I add http://[B]example2.com[/B] as an add-on domain for example.com, it's actually set up as http://[B]example2[/B].example.com
- If I delete the sub-domain entry above for the add-on domain in the cPanel sub-domains section, will the add-on domain still work?
- Is there a way to ensure that an add-on domain's (http://example2.com) content is NOT accessible at its sub-domain (http://example2.example.com)?
- Is it possible to create a sub-domain for an add-on domain? Techinically, this would be http://[B]sub.example2[/B].example.com. The sub-domain entry form defaults to adding the sub-domain paths even for an add-on domain as public_html/sub instead of public_html/example2.com/sub. When I go ahead and choose the latter path, I don't get any cPanel errors, but I just wonder if this will behave well if any content was actually put on the sub-domain of the add-on domain. I mean, will there be any problems with links, .htaccess files etc?
Last edited: