Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

How to store files for different websites in with one hosting (webhostingforstudents)?

Hi! I upgraded my hosting plan so now I can host several websites at my server (webhostingforstudents). Please help me understand how to store files there properly!

I added new domain via Addon Domains, and new folder was created in my 'public_html' with the name of a new website.

So now my 'public_html' folder looks like that: all the files for my first website + a folder with a name of a second (new) website on the same level with its wordpress files inside. Now my first website works, and the second one doesn't (I can access my WP-admin area, add new pages and do changes, but nothing shows up when I view the website or a page - just a blank window).

Please, help me solve it!:)

I'm afraid to do any changes in FTP that could break my first website, and hosting support team is horribly helpless. :(

3 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,254 Points

Hi Alina,

What you've got there is something like what I do on my webspace. A domain addon is like a second domain within your main main domain, It exists as a folder within your domain so it takes up the same space.

so... www.treehouse.com would be the main domain but you could have other add ons looking like

www.treehouse.com/websiteaddon.com so it has a second suffix denoting a second web area that both take up space in your hosting package. It will have it's own public domain folder and can be accesed with it's own FTP details.

But if it's easier for you, you can upload new files to your add on by using your existing FTP details so you don't have to make any changes.

Good luck :)

Thanks for the answer, but I still don't understand.

Let's say my first domain that works is www.first.com, the second one is www.second.com, I bought them separately from the third party. And I host them at webhostingforstudents. My hosting plan says that I can have 3 different websites.

So is it what you're saying that my second domain can be accessed by audience only when they open in the browser:

www.first.com/second.com ??? This is crazy!) Of course I need that just www.second.com work by itself.

Also, I can access the files and add new ones via FileZilla, that's not the problem, all the WP files, my theme and stuff are already in the folder. When I open www.first.com/cpanel and www.second.com/cpanel - the public_html looks the same.

The problem is that new website doesn't work, and I think it's because the files are stored in a wrong place. May be I should add my second domain not as add-on domain, but with some other method (on the webhostingforstudents support page I could find only the Addon method)

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,254 Points

Apologies for the confusion. If you have 3 separate domains then they will of course exist as their own separate webspace. Completely different websites. :)

So you can access you second sites wp admin area, but nothing on the front end, it's just white? That leads me to believe you have an issue with the theme installed, not a hosting issue.

You're right Kevin! Stupid mistakes again and again!

Forgive me my ignorance, but that was the very first time I dealt with this kind of problem. Didn't really think that files should be stored like that but it seems to be right.

Thanks!

No problem, it's weird, but that's how it its. I have two wordpress sites on a single shared host, one domain is an add-on to another. No worries, it happens to us all.