html - Folder Structure for domain and subdomains -


hi have been learning how design website , went ok tested on localhost , working should have been having trouble functionality when have uploaded files hosting provider arvixe.

i've been trying learn how structure website in domain folders can't work out how should organised.

i have parent website, , subdomains need go example -

parentwebsite.com subdomain1.parentwebsite.com subdomain2.parentwebsite.com subdomain3.parentwebsite.com 

on locahost test server created websites individually , put them under htdocs folder in xampp. folder structure arvixe hosting lot different - looks this:

http://imgur.com/brqsp9w

am laying out folders correctly?

and if have php scripts website better suited go own folder inside public html? or better suited go directly public html folder?

thanks in advance :)

your web host using cpanel , has typical directory structure quite different compared local xampp environment.

here's how cpanel stores website files.

/home/cpanel-user/public_html ==> main domain  /home/cpanel-user/public_html/addon-domain-directory ==> addon domain /home/cpanel-user/public_html/subdomain-directory ==> sub-domain 

to make website accessible via web, upload web content files /home/cpanel-user/public_html directory.

when add addon domain cpanel, web files stored at;

/home/cpanel-user/public_html/addon-domain-directory

when add subdomain, web files stored at;

/home/cpanel-user/public_html/subdomain-directory


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -