Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Adding Pages to a Website Add a New Page

Tresanne Bonnick
Tresanne Bonnick
1,758 Points

Every time I click the preview workspace button a page comes up that says ''index of'. Why is that?

The '"index of " page has ..... css/ img/ about.html index.html. Then i click index.html then that's when i see the webpage. I have an issue with this because now i am adding pages to the website and in order for me to see the about page, i have to click the about.html to see it. Also when i click ''about"" on the website, it says "500 internal server error''. Am i doing something wrong?

Hi Tresanne, can you provide the code you think might be the issue?

Tresanne Bonnick
Tresanne Bonnick
1,758 Points

That is the thing. I do not think it is something wrong with the code. It is just that every time i click the ''preview workspace" that looks like an eye, it does not take me directly to the webpage. I will take a screen shot of what i mean.

Tresanne, it's going to be easier to help if you could provide some code to double check. For instance, how are you linking the files? Could you provide those bits of HTML?

Tresanne Bonnick
Tresanne Bonnick
1,758 Points

Ok i used this code to link the ''about page'' to the index page.

          <ul> 
            <li><a href="index.html" class="selected">Portfolio</a></li>
            <li><a href="about.html">About</a></li>
            <li><a href="contact.html">Contact</a></li>
          </ul>
        </nav>

3 Answers

One other thing I can suggest is making sure your file structure is the same as in the project files. If there's an issue with workspaces, try restarting your web browser, force reloading the cache, and double checking if you've installed any recent ad blocking software or a new antivirus program. If all else fails, I would suggest you contact support to see if they can help resolve the issue. It's hard to know what's going on without a little more technical information. Sorry about the trouble there. I'm hoping you get this worked out soon.

Tresanne Bonnick
Tresanne Bonnick
1,758 Points

Ok. Thank you for your time!

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Tresanne,

I'd have to agree with Dustin, it does look like a problem with the file structure your experiencing.