Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-06-13, 11:35 AM   #1
dareutwo
You can't disprove anything with evidence that doesn't exist
 
dareutwo's Avatar
 
Join Date: Mar 2003
Location: NW Minnesota - pop 865 +/- 1
Posts: 2,038
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!
__________________
This is me Mark's-Links
dareutwo is offline   Reply With Quote
Old 2005-06-13, 11:40 AM   #2
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
You can use Redirect: http://httpd.apache.org/docs/mod/mod....html#redirect

Redirect /free-site/ http://domain.com/free-site/index.html
swedguy is offline   Reply With Quote
Old 2005-06-13, 11:58 AM   #3
dareutwo
You can't disprove anything with evidence that doesn't exist
 
dareutwo's Avatar
 
Join Date: Mar 2003
Location: NW Minnesota - pop 865 +/- 1
Posts: 2,038
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.
__________________
This is me Mark's-Links
dareutwo is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:13 PM.


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