Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > index.html = index.php

index.html = index.php
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Jan 22, 2003, 11:58 PM
 
What do you add to your httpd.conf to make apache automatically look for index.php files, in addition to index.html files?
     
Fresh-Faced Recruit
Join Date: Oct 2002
Location: St. Louis, MO
Status: Offline
Reply With Quote
Jan 23, 2003, 02:02 AM
 
There will be a line in httpd.conf that looks something like this:

DirectoryIndex index.cfm index.htm index.pl index.html index.cfml index.jsp index.asp default.asp default.aspx index.aspx index.cgi

That line lists, in order of priority, all the files it will look for if you give just a directory, but no file name in the URL. Just add index.php to that list, and off you go!

Peace,
phidauex
     
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
Jan 23, 2003, 02:24 AM
 
If you're using OS X server then you can do it with the GUI on the first setup page for a new web site. Just change index.html to index.php or make a list like the first post and put "index.php index.html" in that field.
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Jan 23, 2003, 05:50 AM
 
or, just drop an .htaccess file in the directory you're using, with the line: DirectoryIndex index.php
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:05 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2