There was a problem loading the comments.

How to setup Addon domain on cPanel?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Addon domain is a fully hosted domain with branded sub-domains, POP email account, FTP account, private CGI-BIN, private FrontPage extensions. dedicated content, dedicated mySQL databases and script installations, accessible via http://www.addon-domain.com, but within the same control panel as your Primary Domain.

Steps to setup Addon domains:

(1) Add the addon domain (say domain2.com ) via CPANEL to your hosting account. See tutorial at http://www.indichosts.net/flash/cpanel/rvblue_addon.html

(2) Create email accounts for the addon domain from CPANEL like user@domain2.com and access them via your email client with POP/SMTP server mail.domain2.com .

(3) Upload content of domain2.com using the FTP user created for addon domain in step 1, with the following details,
Server: IPaddress , Username: domain2@domain2.com and Password: as specified when adding Addon domain in CPanel
or Upload data to directory /public_html/domain2/ using the FTP details of your primary domain.

(4) Change DNS settings of domain2.com to that specified in 'Activation email' for the 'Primary domain'. Once the DNS changes have propagated (takes 4-48hours depending on your ISP & domain registrar), you adddomain will start working via http://www.domain2.com

(5) Setup redirect of http://www.primary-domain.com/domain2/ to http://www.primary-domain.com
This can be done by adding the following lines to the .htaccess file in your directory /public_html/domain2/

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain2.primary-domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain2.primary-domain.com$
RewriteRule ^(.*)$ http://www.primary-domain.com [R=301,L]
RedirectPermanent /domain2
http://www.primary-domain.com

Your addon domain is now ready for visitors!


#This configuration is makes domain2.com a fully hosted domain, except for control panel access. If you need a separate Control Panel access for domain2.com , then you need to signup for another hosting account.

#Please remember migration from Addon domain to Primary domain later will require a complete re-setup of the domain.

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  


Self-Hosted Help Desk Software by SupportPal
© Indichosts.net