| » 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://test.html/, 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:// 217.74.132.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.
|
Add to Favourites
Print this Article
|
Powered by WHMCompleteSolution |