PDA

View Full Version : Need htaccess code to show "index.html"


dareutwo
06-13-2005, 11:35 AM
Morning all -
I know the code is in here someplace, but I've been searching for over an hour already.
I need htaccess code to do this.
domain.com/free-site/
directs to
domain.com/free-site/index.html

Basically just telling the server what the index file is.
I believe CD34 posted it before, but I can't find it.

Thanks in advance!

swedguy
06-13-2005, 11:40 AM
You can use Redirect: http://httpd.apache.org/docs/mod/mod_alias.html#redirect

Redirect /free-site/ http://domain.com/free-site/index.html

dareutwo
06-13-2005, 11:58 AM
Found it -
Sorry I guess I didn't explain myself too clearly.
Here it is.

DirectoryIndex index.html index.htm

That seems to be working just fine.