How to Point a Domain to a Specific Folder in cPanel Print

  • parked domain, addon domain, cpanel, domain folder, domain management, subdomain, document root
  • 0

If you want to point a domain to a specific folder within your hosting account, you'll need to use the Addon Domain feature rather than Parked Domains. Parked domains automatically point to your main website's public_html folder and cannot be directed to subfolders, while addon domains give you full control over which directory your domain loads from.

Understanding Parked Domains vs Addon Domains

The key difference between these two domain management options lies in folder control and independence. Parked domains act as aliases for your primary domain, meaning they display the exact same content from your main public_html directory. Addon domains, on the other hand, function as completely separate websites with their own dedicated folders.

When you park a domain, it simply mirrors your main website. This is useful when you own multiple domain names and want them all to show the same content. However, this limitation means you cannot direct a parked domain to a specific subfolder like public_html/store or public_html/blog.

How to Set Up an Addon Domain for Folder-Specific Pointing

To point your domain to a specific folder, follow these steps in your cPanel:

  1. Log into your cPanel dashboard
  2. Locate and click on the Addon Domains icon under the Domains section
  3. Enter your domain name in the "New Domain Name" field
  4. The system will auto-populate the subdomain and document root fields
  5. Modify the Document Root field to specify your desired folder path (for example, public_html/mysubfolder)
  6. Click the "Add Domain" button to complete the setup

Once added, your domain will load content exclusively from the specified folder. This approach is ideal when you want to run multiple websites under different domains within a single hosting account at OBHost.

Common Use Cases for Addon Domains

Many website owners use addon domains to manage multiple projects efficiently. You might create a main business website at yourdomain.com while running a separate blog at yourblog.com, each with its own folder and content. E-commerce sites often use this feature to separate their store from their informational pages.

Another popular scenario involves testing environments. You can create a development version of your site in a subfolder and point a test domain to it, keeping your live site untouched in the main directory.

Important Considerations

Before setting up addon domains, verify that your hosting plan supports them. Most hosting packages include a specific number of addon domains, though limits vary by plan tier. Additionally, ensure your domain's DNS nameservers are already pointing to your hosting account, as the domain must be properly configured at the DNS level before it can function as an addon.

The document root path you specify must exist within your account structure. If you enter a folder that doesn't exist, the system will typically create it automatically, but it's good practice to organize your folders beforehand for better management.

Frequently Asked Questions

Can I convert a parked domain into an addon domain?

Yes, you can convert a parked domain to an addon domain. First, remove the domain from the Parked Domains section in cPanel, then add it as an addon domain with your desired folder path. This transition is seamless and doesn't affect your domain registration or DNS settings.

How many folders deep can I point an addon domain?

You can point an addon domain to any subfolder within your public_html directory, regardless of depth. For example, paths like public_html/sites/project/store are perfectly valid. Just ensure the path is accurate and the folder has the appropriate permissions.

Will my parked domain settings affect my main website?

No, parked domains simply display your main website's content without affecting it. However, search engines may view parked domains as duplicate content, which could impact SEO. If you need unique content for each domain, addon domains are the better choice.

Do addon domains require separate email accounts?

Addon domains can have their own email accounts that are completely independent from your primary domain. You can create unique email addresses for each addon domain through the Email Accounts section in cPanel, giving you full control over email management across all your domains.

For assistance with domain configuration or any hosting questions, our support team is available 24/7. Visit our contact page or email support@obhost.org for expert help with your setup.


Was this answer helpful?

« Back