Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Need htaccess code to show "index.html" (http://www.greenguysboard.com/board/showthread.php?t=20795)

dareutwo 2005-06-13 11:35 AM

Need htaccess code to show "index.html"
 
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 2005-06-13 11:40 AM

You can use Redirect: http://httpd.apache.org/docs/mod/mod....html#redirect

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

dareutwo 2005-06-13 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.


All times are GMT -4. The time now is 09:02 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc