I bought a multiple domain hosting package. Do i have to put all the files, index files in the public_html folder for all the domains i have?? If yes then it will be a big mess managing and identifying the files. Also if i have to delete a website, i will need to identify each file for a domain. I want to host a script at the domain. If i put all the files of the script directly in the public_html folder and not in a subfolder of publichtml, then it will be difficult to manage everything. It wil look horrible there. Also it will be very difficult for me to delete anything.. (its already been actually) Is there a way by which i can better arrange stuff in the public_html folder? Is there a way by which i can put files in a sub folder of public_html and still access that website by its www.domain.com and not by www.domain.com/subfolder Thanks in advance for your detailed answer. "Detailed" because a brief answer will be difficult to pick up by my brain i guess..
Start by going to your control panel. Your host should have given you an URL for that. There you can set up your different domains. Now depending on your host's server setup you will have to FTP (upload) each site to a specific address, usually yoursite.com and password or one FTP address that gives subdivisions on the server for each domain that you have set up. I hope this makes sense to you
I uploaded the script for the site into public_html. It created a big mess. If i had uploaded the script into a folder named myscript, i would have to access it by mysite.com/myscript I want to avoid the mess in the public_html folder and still access my site directly by mysite.com
Could you explain the "mess" a bit better. I don't understand why you think that using mysite.com/myscript would be better, would you then not have the "mess" in mysite.com/myscript ?
by 'mess' i mean problematic, crowdy, messy, hustle and bustle, too many files there and i dont know which file has what use. I hope you got it.
You should put the files for each website/domain in its own subdirectory of public_html (public_html/mysite1, public_html/mysite2, etc..) In your hosting control panel when you add domains it should ask where the domain should be "pointed" to and it is here that you will point it at the subdirectories. Therefore you can access each site just by entering the url (www.mysite1.com, www.mysite2.com, etc.) Hope that helps.
well , if you have multiple domains, you need to add them as "addon" domains. while adding a domain, lets say domain.com, it will ask a directory to point it to. select public_html/domain.com , and then upload any files in public_html/domain.com directory, it will be accessable by http://domain.com url hope it helps.