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

HTML

Built a simple website - Works on computer, not on the web server

Hello, I finished the website tutorial and the whole website looks perfect on my computer (local), but when i upload the files through ftp to the server (keeping the exact same folder structure) - the website shows without the images. Exact same code, same folder structure. What happened?

    <img src="img/logo.gif" alt="Smells Like Bakin">

Are you using a licensed text editor? Did you buy a license for the text editor you are using?

yes, i bought the sublime license.

Are you using a licensed text editor?

If the text editor let's you save the file then that's not your issue.

2 Answers

Can you post the link to your project? Your hosting might be set to require absolute paths only, ie, http://www.somesite.com/assets/images/etc/etc

i just hosted it under a domain i still had.

http://hunchoi.com/

Your hosting might be set to require absolute paths only

All hosting let's you use relative paths, assuming you are using them correctly.

Ok, this is weird and seems to be a different issue (serverside or domainside). If i put the website files into a subdomain, everything works. If I out it into my main domain (root domain) - no images...

Problem solved!

i had to use the main domain as a subdomain and all of a sudden all works out. Thank for the answers anyway!

Sounds like an issue with your file paths, check out this primer on absolute vs relative file paths

Thank you James! Yes, thats my guess as well. Thanks for the link, I will read more about the file paths...