Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

l3lue

macrumors member
Original poster
Jul 2, 2006
64
0
Baton Rouge, LA
is this possible?

I was looking through the thread about "most non-iWeb looking sites" and it seems like people are able to accomplish what I'm saying.

Thanks.
 

adamfishercox

macrumors 6502
Aug 15, 2007
474
10
it's all in the way you upload the site. If you make your homepage located at /Site/home.html, it'l be there. If you opt instead to upload evrything directly into the top level folder it will just be at /home.html.
 

SrWebDeveloper

macrumors 68000
Dec 7, 2007
1,871
3
Alexandria, VA, USA
Why would you want the home page to be

www.mysite.com/home.html

Wouldn't you want it to be just

www.mysite.com

Exactly.

That depends on which files the server is configured to look for as directory index files. Meaning, if one of those files exist in a given directory (including document root) then it will be served. If you visit http://www.mysite.com and see a directory listing of files, then you know you need to add home.html to the directory index in your web server configuration.

In Apache it can be added into the global configuration portion of httpd.conf or as surfdog suggested, place it inside .htaccess in your document root similar to this example which uses 3 files:

DirectoryIndex homes.html index.html index.php

Add any others, each separated by a space and include the full file extension, i.e. homes.htm and homes.html are not the same file plus it is case sensitive. If you don't run Apache, ask your webhost to set it similarly.

-jim
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.