• Hi
    Apologies if this has been asked before but I am brand new to this and need help. I purchased a domain (knowyourtopic.com)and transfered the DNS hosting to HostJill.com. I then downloaded wordpress (via cpanel) and went about “practicing” and playing around to get the hang of things. After a while i felt like I was ready for a real website, so I purchased another domain (carblessliving.com) and added it as a addon domain in cpanel.
    I want to install wordpress and start building my real website, but I dont know how to access my addon domain, becasue cpanel keeps requiring me to login using my primary domains login details. Please help with some guidance.

    Kind regards,
    Neli

Viewing 4 replies - 1 through 4 (of 4 total)
  • At BlueHost, I first made a location (sub-folder) containing a new WordPress upload and then told cPanel to assign the Add-On to that folder and then went to it in my browser. So, I had this:
    /public_html/Primary Domain and WordPress installation
    /public_html/addon1/Add-On Domain WordPress installation

    note: Place only the *content* of the unzipped /wordpress/ folder inside the sub-folder unless you might want to use the /wordpress/ folder as the sub-folder…

    /public_html/Primary Domain and WordPress installation
    /public_html/wordpress/Add-On Domain WordPress installation

    Just log into your usual domain name. Since most of the hosting providers don’t give a separate login to addon domains.

    Your primary domain’s root folder will be like this

    /public_html/your_domain_name

    now, if you added a new addon domain means, it will ask you for the directory of the new domain when you were creating an addon domain.

    Usually it will at
    /public_htm/your_domain_name/your_addon_domain_name

    Just copy your wordpress files in your new addon domain’s root folder and install your wordpress.

    Your primary domain’s root folder will be like this

    /public_html/your_domain_name

    Not necessarily. The scripts at some hosts install WordPress into public “root” such as /public_html/ since a Primary Domain can only be cPanel-assigned to that location. Then at BlueHost, at least, htaccess can be used to redirect the Primary Domain to a sub-folder such as /public_html/your_domain_name…

    ## from https://my.bluehost.com/cgi/help/347#redirect
    # .htaccess main domain to subdirectory redirect
    # Do not change this line.
    RewriteEngine on
    # Change example.com to be your main domain.
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    # Change 'subdirectory' to be the directory you will use for your main domain.
    RewriteCond %{REQUEST_URI} !^/subdirectory/
    # Don't change the following two lines.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # Change 'subdirectory' to be the directory you will use for your main domain.
    RewriteRule ^(.*)$ /subdirectory/$1
    # Change example.com to be your main domain again.
    # Change 'subdirectory' to be the directory you will use for your main domain
    # followed by / then the main file for your site, index.php, index.html, etc.
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    #RewriteRule ^(/)?$ subdirectory/index.html [L]
    ## index.php for WordPress
    RewriteRule ^(/)?$ subdirectory/index.php [L]

    And then for Add-Ons, installations can be placed within /public_html/ and do not have to be nested within another installation.

    Many hosts offer youtube tutorials and blog posts on how to add wordpress to your hosting account specific to that provider.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘installing wordpress on addon domain in cpanel’ is closed to new replies.