File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes General Computing and the fly likes How do I avoid the index of site Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "How do I avoid the index of site" Watch "How do I avoid the index of site" New topic

How do I avoid the index of site

Johny Lee

Joined: Dec 14, 2012
Posts: 4
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

Joined: Oct 14, 2005
Posts: 19973

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

Joined: Apr 15, 2011
Posts: 331

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.


It's not what your program can do, it's what your users do with the program.
I agree. Here's the link:
subject: How do I avoid the index of site
It's not a secret anymore!