• Resolved danis_gr

    (@danis_gr)


    Hello friends,

    I have a wordpress website hosted on hostgator. I also have 3 addon domains in the same cPanel, wordpress websites too. Let’s suppose I did myself one new fifth website with index.html and some folders such us js folder, css folder, fonts folder, images folder, etc. (without WordPress CMS)

    In the tree of the cPanel in the public_html folder, I see my wp-include folder, wp-content folder, wp-admin folder,etc. of my website and I also see the three folders of my 3 addon domain websites (addondomain1.com, addondomain2.com and addondomain3.com) each of one include inside wp-include folder, wp-content folder, wp-admin folder, etc.

    My question is HOW-WHERE to upload the fifth handmade (fourth addon domain) website of my index.html and its folders.

Viewing 14 replies - 1 through 14 (of 14 total)
  • If you want it to be seperate from all the others, you need to create another sub-domain (addondomain4.com), which will create another directory (folder) and upload it to there.

    Thread Starter danis_gr

    (@danis_gr)

    u mean addon domain and not subdomain obsiously, don’t you??
    (about this I have a question: I created three addon domains, I see them in the cPanel addon domains but I also found out that in the cPanel subdomains there are also three sub-domains…so what is going here? u create three addon domains and automatically three subdomains are created???)

    So, inside this directory you are talking about, I will “trhow” all the files (index.html, css folder,etc.) ??? And that’s all??

    u create three addon domains and automatically three subdomains are created???

    Yes, cPanel works that way. for every add-on domain, a corresponding sub-domain is created off the main domain. So if you have example.com and you add on newsite.com you’d have a sub-domain of newsite.example.com set up as well.

    Just as a note this is all cPanel, and really has nothing to do with WordPress. πŸ™‚

    Thread Starter danis_gr

    (@danis_gr)

    Yes indeed! πŸ™‚ (about nothing to do with WP)

    So, it is in our choice, which of two ( newsite.com or newsite.example.com) we are going to use? or creating a website with one of them, then we automatically have the same website with the rest one, too??

    And about my index.html… we finally throw index.html with its folders(css,js,etc) in the automatically created directory of the new addon or subdomain?

    creating a website with one of them, then we automatically have the same website with the rest one, too??

    Yes. The same content is served on both.

    And about my index.html… we finally throw index.html with its folders(css,js,etc) in the automatically created directory of the new addon or subdomain?

    Yes. There’s only one folder that is used for both.

    Thread Starter danis_gr

    (@danis_gr)

    Thank u very very much…I am newbie here so I am thinking of let this topic a little more and not making it “resolved” yet…

    Thank u catacaustic for your clear and immediate responses.

    Sub-domain looks like this > subdomain.mainsite.com.

    It is sort-of a “stand-alone” site connected to the main site, but it is outside the main site. A sub-domain is treated by the search engines as a truly unique website.

    Sub-directory looks like this > mainsite.com/subdirectory
    A subdirectory is inside the main site. A sub-directory is treated by the search engines as a part of the main website.

    Now, here’s the confusing part for some people…
    When you look at your files with File Manager or a FTP client (…like Filezilla) your subdomains are “folders” inside the public_html along with your wp-admin, wp-content, wp-includes and the other single files that make up WordPress.
    So… you may think that they are inside the WordPress install, but they aren’t.

    If I went through my cPanel File Manager or through my FTP client and created a directory (folder) named “images” and put some images in it, this would be a subdirectory that I could call images from with HTML or PHP, but it could not run anything by itself, it’s just a place to hold files – or jQuery plugins, or fonts, or whatever.

    While a sub-domain looks like another folder or directory within your web site file structure, there is actually a little more to it.

    Unlike sub-directories, sub-domains MUST be created in the cPanel under the SUBDOMAINS link (not the File Manager). When the server creates the sub-domain based on the name you provide thru the cPanel interface, it also creates a cgi-bin folder just for that sub-domain, then creates a folder for the subdomain and places it within your public_html folder.

    The sub-domain can run it’s own cgi scripts just as if it were a web site on it’s own.

    So, to run properly, your HTML files with their own index.html, css folder, etc. should be a subdomain, not a subdirectory.

    Thread Starter danis_gr

    (@danis_gr)

    1) Yes a cgi-bin folder is created for the particular addon-domain (not sub-domain – propably it’s the same), I agree. THis cgi-folder is empty, is n’t it?

    2) Sub-domains are websites links. Addon domains, too.
    If we create a subdomain, an addon domain will be created? (opposite proccess than before).
    So, for example I create:
    newsite.example.com (subdomain – completely stand-alone site)
    Then, automatically I will have the addon: newsite.com ???
    and moreover with the same content??
    3) When you/we say sub-directory, we mean a directory such as home,contact, etc? meaning: newsite.com/home newsite.com/contact etc? Obviously NO! Right? We mean a sub-directory in the cPanel tree under the public_html folder.
    4)
    You say:
    “it also creates a cgi-bin folder just for that sub-domain, then creates a folder for the subdomain and places it within your public_html folder.”
    SO, this folder is a subdirectory folder linked to the subdomain, I mean it’s a “real” sub-directory (it reffers to a stand-alone website)

    5)You say:
    “So… you may think that they are inside the WordPress install, but they aren’t.”
    Yes but they are inside (each one of them) another WP install, aren’t they?
    (I mean inside the WP installs of their subdomains/addon domains)
    6) At least, in my cPanel, I can see the subdirectories-folders of my addon domains, not the folders of subdomains…probably it’s the same..I mean because they have the same content… or not?????

    I am so sorry for so many questions… πŸ™

    Thread Starter danis_gr

    (@danis_gr)

    Sorry for the 3) question..is already answered…you made it clear with image folder… πŸ™‚

    addon-domain – sub-domain > same thing.
    (potato – potatoe, car – automobile, etc.)

    wp-content > themes – themes is a sub-directory

    main domain is a top level stand-alone website dependent on nothing.
    sub-domain (addon) is a stand-alone website dependent on the main domain.
    sub-directory is a part of either a main domain or a sub-domain.

    main domain – full WordPress install
    sub-domain (addon) – full WordPress install
    sub-directory – part of a full WordPress install

    Thread Starter danis_gr

    (@danis_gr)

    I think this topic is so explanatory and clear due to my newbie’s questions and to your clear answers!!! Thank u very much.

    So sub-directory is obviously a part of full WP install as it is part of either a main domain or subdomain/addon domain, BUT not a link/webpage – I mention that for not confusing it with for example mainsite.com/contact which is also a part of our WP website but neither subdomain nor addon domain. It’s just a webpage/subcategory of our mainsite.

    Hope I am talking right to give a hand to other beginners such as me… πŸ™‚

    As a final note, take this link:

    mainsite.com/wp-content/uploads/2016/01/image.jpg

    mainsite.com – the main stand-alone site (actually called “root domain”)
    wp-content/ – sub-directory
    uploads/ – sub-directory
    2016/ – sub-directory
    01/ – sub-directory
    image.jpg – actual thing (…post or page is an actual thing)

    If you want to know more, this is a good start: Root Domains, Subdomains vs. Subfolders and The Microsite Debate

    …off to do other things. πŸ™‚

    Thread Starter danis_gr

    (@danis_gr)

    Thank you very much!

    If this is all, you could mark this “Resolved”.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to upload to the cPanel my non-worpress site’ is closed to new replies.