.
 

Why Us?
24/7 Monitoring

Scalable Network

Fast Hardware

Red Hat Linux

Control Panel

Satisfaction Guarantee

FAQ - Frequently Asked Questions

index.html and why you should use it

This again is where a number of newer webmasters become stumped. They upload all of their files and directories, and then want to access them with their browser, but forgetting to create their welcoming page as index.html, so here's what happens: They access their site as http://www.mydomain.com or using the associated IP number, for example, http://192.168.122.26, and what they see is their entire file directory structure! Yikes!… It looks just like exploring the C drive on your computer! You don't want visitors seeing that, do you?

When you access your site by calling it as http://www.mydomain.com or the assigned IP (for example), http://192.168.122.26/, the web server looks for the "index.html" file as the (default file) to be sent to visitors, and thus this is why http://www.mydomain.com/ by itself will automatically display the home or welcoming page. It's because the server automatically looks for index.html whenever a domain or directory is called without a filename appended to it such as this, http://www.mydomain.com/file.html.

If it can't find index.html, it will simply list "your entire web directory" to everyone that access's it, which is a MAJOR security risk! ALWAYS, use an "index.html" file in any directory you create, including your "root" web directory. In general, it's always a good idea to use "index.html" as your main page in "all sub-directories" of your account. Forgetting to place an index.html in your root web, or any subdirectory of your web for that matter will effectively leave all of its contents viewable to the world.

Related Topics:
Uploading your files in the correct mode (ASCII or Binary)
File Types and how they control the behavior of your files
FTP and FrontPage (What you should know)
The difference between ASCII and BINARY
Understanding case sensitivity
How come the files I've uploaded doesn't show up on my web site?
Setting your FTP client to automatically detect ASCII and Binary file transfers

Terms of Service
Copyright © 2001-2007 ServerPro. All Rights Reserved.
About Us Hosting Plans Resellers Support Frequently Asked Questions Resources Contact Us