• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I avoid the index of site

 
Johny Lee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I developed my first website and now use Hosting24 as my website host. I also uploaded my HTML files to the web. However, when I try to access my website I see a index o/ page with links to my website. What do I have to do in order to have my website coming up when I type it into my server?

Thanks much!
 
Paul Clapham
Sheriff
Posts: 21116
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a page which looks like a directory listing? Then there's a configuration option which will prevent that from being displayed. That option would of course be controlled by your website host, so contact them.

You should also configure your site so that if somebody uses the URL for the whole site and not for a particular page, the site automatically forwards or redirects to your home page. Again, your hosting company should be able to get that done. Or if it turns out to be your responsibility, they should at least show you how to get to the management console or whatever it is they have set up for you to manage your site.
 
Joe Areeda
Ranch Hand
Posts: 331
2
Java Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another possibility is that everything is configured properly but you do not have your home page named correctly (as least as far as the server is concerned).

If you are uploading html is your homepage called "index.html" or "index.htm"?

Servers are usually set up to look files named index.html or index.php or index.jsp or some other extension and if it doesn't find them it gives you a list of files in the directory.

I tend to set mine up so if it doesn't find the requested file it gives an error, but that's the personal preference of a hacker-o-phobe.

Joe
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic