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
Hun Choi
2,075 PointsBuilt 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">
Hun Choi
2,075 Pointsyes, i bought the sublime license.
James Barnett
39,199 PointsAre you using a licensed text editor?
If the text editor let's you save the file then that's not your issue.
2 Answers
Jonathan Musso
3,760 PointsCan 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
Hun Choi
2,075 Pointsi just hosted it under a domain i still had.
James Barnett
39,199 PointsYour hosting might be set to require absolute paths only
All hosting let's you use relative paths, assuming you are using them correctly.
Hun Choi
2,075 PointsOk, 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!
James Barnett
39,199 PointsSounds like an issue with your file paths, check out this primer on absolute vs relative file paths
Hun Choi
2,075 PointsThank you James! Yes, thats my guess as well. Thanks for the link, I will read more about the file paths...
Roy Conkle
376 PointsRoy Conkle
376 PointsAre you using a licensed text editor? Did you buy a license for the text editor you are using?