PDA

View Full Version : How can I use html page as default on my server



imi_99
12-29-2006, 09:36 AM
Hi,
I have two files on my root directory. index.php and index.html. By default it goes to index.php when we enter a domain name

index.html is automatically generated page and you can see how it is generating automatically on this thread,


http://www.dynamicdrive.com/forums/showthread.php?t=6397


My question is If someone type in website address like www.car-sale.org.uk it open file by default on http://www.car-sale.org.uk/index.php

But I want to change the default page to http://www.car-sale.org.uk/index.html

any suggestion.

imi

vpappan
12-29-2006, 09:55 AM
Hi,

I think in your httpd.conf file,

<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>

this part, index.html is like this, that is write after index.php.
if your directory containing both index.html and index.php files, then that execute order wise.
I the above example, index.php page will display.

check this part in our httpd.conf file.
Regards
Vijay