Results 1 to 2 of 2

Thread: How can I use html page as default on my server

  1. #1
    Join Date
    Nov 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile How can I use html page as default on my server

    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/s...ead.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

  2. #2
    Join Date
    Aug 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •