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

My website keeps going to a Index of/ page when I open it. How do I fix this?

How do I make my website go to my homepage when I run it?

1 Answer

Hi Bryan,

Make sure you have an index.html file. If you do not specify anything after your domain name, for example, you go to www.domain.com and not www.domain.com/blog, the server will try to find the index by searching for these files and in this order:

- http://domain.com/index.html
- http://domain.com/index.htm
- http://domain.com/index.php

If none of these can be found, it will simply return an index of the pages on your server. So, basically, your frontpage should be named index.html.

Good luck.

Ps. I deleted the other topic you opened since it was an exact copy. :)