02-22-2006, 08:16 AM
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."
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.