Results 1 to 2 of 2

Thread: Subdomain to get to your addon domain

  1. #1
    Join Date
    Feb 2006
    Location
    Cumming, GA
    Posts
    43

    Default Subdomain to get to your addon domain

    Saw this in the Knowledgebase and wondered in plain English what it means?
    "Example on how to stop people from being able to use the subdomain to get to your addon domain."

  2. #2
    Join Date
    Feb 2006
    Posts
    28

    Default

    Well, first by way of a bit of background... When you create an add-on domain in cPanel, you also get a sub-domain as part of that process. The sub-domain name will match whatever directory name your add-on domain uses.

    So, for instance, if you owned a domain called bilbo.com, and then added an add-on domain called frodo.com, pointing to a directory called "frodo", then you would normally be able to access the site using both "www.frodo.com" and "frodo.bilbo.com"

    Normally, this isn't a big deal, but there may be situations where you wouldn't want this to work, as it may break certain PHP applications if they're accessed through an unexpected URL. Further, if you're using add-on domains to host completely separate organizational sites, then you generally wouldn't want something like "company2.company1.com" to be an alternative URL to get the company2's web-site.

    The knowledge base article simply describes a way of writing some redirection commands into a .htaccess file to prevent people from being able to use the sub-domain address to access the add-on domain.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •