Website directory

When i goto my domain, all i see are the files and directories that are inside the website. I would have to goto for example:

how do i make main.html open up when someone goes to the intial:

and such

This information is available in A Dreamhost Wiki article on Apache

[quote]The DirectoryIndex command lists all the files Apache should look for (in order) to determine what to display when somebody goes to a URL for a directory. That is, it’s the default file name for your web site. Ours is set to:

DirectoryIndex index.html index.shtml index.htm Index.html Index.htm Index.shtml default.htm Default.htm default.html Default.html default.shtml Default.shtml page1.html index.cgi index.php index.php3 index.phtml home.htm home.html home.shtml index.wml

As long as you name your “index” file any one of those things, it will work!

If you have two files with names from that list, Apache will show the one that shows up first (e.g. index.html will show up, even if you have an index.php file in the same directory).

You can change your own DirectoryIndex setting to be anything you’d like via an .htaccess file too! [/quote]
Short answer: Rename your “main.html” file to one of those names in the above list. Good Luck! :slight_smile:


and to think i almost named it index.html instead, thanks… haha

You’re welcome! Rock ON!