"index of"


Index of /

Name Last modified Size Description Google.htm 18-Nov-2006 22:22 5.2K
index1.html 18-Nov-2006 22:07 71

this is what my homepage looks like right now, but i dont want it to display the index of and the archive, i want it to display my html files right away, how do i do this ?


Rename “index1.html” to “index.html”. “index1.html” is not a normal default page.



cool it worked great, thanks alot for the quick reply


I general, the file that is supposed to be the “home page” is named index.html, index.htm (or index.php if you are using php). This is a setting in the Apache web server and you can have an individual setting if you want another file to be your default home page. Create a file named .htaccess that includes the line DirectoryIndex homepage.html. Change homepage.html to the name of the file you want to have as home page. Upload the .htaccess file to the root of your domain directory. It might become invisible but it works anyway.

Also take a look at the wiki on .htaccess.

A better solution is to do as you did and rename the file to index.html. But if your site is very big and you have multiple links across the site and to your home page, it might be a temporary solution to add the .htaccess file.


I will warn you though - temporary solutions tend to become permanent.

Renaming the file (or at least adding an index.html that redirects to index1.html) were better options

Glad we could get you on track!