Page 1 of 1

index.php instead of index.html

Posted: Fri Jul 05, 2002 11:28 am
by craginweb
Is there a way to make my index.php page load by default instead of using index.htm or index.html?
I have tried creating an index.html then using a meta tag redirect:

Code: Select all

<META http-equiv="refresh" content="0;URL=index.php">
Although this works I am certain I have been to pages where the php page loads by default, I just cant seem to make mine work.

What I am trying to acheive is that when people go to my site they see
http://www.madeupsite.com/ (which would load the index.php)
instead of http://www.madeupsite.com/index.php (which is actually the second page loaded)

I am thinking this has something to do with the configuration of the Apache server, any ideas?

thanks,
craginweb

Posted: Fri Jul 05, 2002 11:44 am
by hob_goblin
if your using apache look for a file named "httpd.conf" it should be in the apache/conf folder, then scroll down to the line where it says

Code: Select all

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.html
    DirectoryIndex index.php
</IfModule>
and just edit that in the order you want it

Posted: Fri Jul 05, 2002 11:54 am
by craginweb
another problem solved.

thanks hob_goblin