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

Development Tools

I thought I new something about paths

Hi All,

I was playing around with some Project Files from How to Make a Website - Build a Three Column Layout when I encountered a strange situation. If I open the files this way, file:///home/jeff/public_html/testWebSite/stage8/index.html everything displays properly. Now if I open the files like this, http://localhost/~jeff/testWebSite/stage8/index.html no images show up and there is no css applied. Below I have supplied the html links and the directory/file structure, and the address of the project files, which I don't think should matter here since the browser can render everything fine one way but not the other. I have also tried this in three different browsers with the same results. I am running Apache2 web server on Debian Linux. What am I missing?

Project Files

link rel="stylesheet" href="css/main.css"

link rel="stylesheet" href="css/responsive.css"

Directory/File Structure

Thanks Jeff

3 Answers

Hey James,

The problem was permissions.

James Barnett
James Barnett
39,199 Points

Every Web Server & OS has different defaults. But if I had to take a wild guess, I'd go with http://localhost/testWebSite/stage8/index.html

Hi James,

Thanks for the wild guess, but no go. This path, http://localhost/~jeff/, is where I have Apache pointed and I have not had a problem with it before. For example, the following path works just fine: http://localhost/~jeff/testWebSite/php/. This directory has the same structure as the one I am having problems with. As I think you probably know the tilde in the path designates the home directory. I guess I'll play with it later and see what I can figure out.

Thanks Again,