Web Design and Web Development Forum

  1. #1
    Join Date
    Oct 2006
    Posts
    94
    Rep Power
    6
  2. hendy is on a distinguished road
  3. auto load index.php

    hi all...i've just setup a web server.
    normally when we're calling a link, let's say
    http://mypage/
    it's actually referr to
    http://mypage/index.html
    right?

    now i need the web server to automatically call the index.php when the browser enter only the folder, not the index.html

    anyone can help?
    Reply With Quote Reply With Quote
  4. #2
    Join Date
    Dec 2005
    Posts
    1,819
    Rep Power
    8
  5. Umang is on a distinguished road
  6. Re: auto load index.php

    I'm off to sigcont.com
    Reply With Quote Reply With Quote
  7. #3
    darkecho's Avatar
    Join Date
    Aug 2005
    Location
    Michigan... USA
    Age
    23
    Posts
    2,337
    Rep Power
    9
  8. darkecho is on a distinguished road
  9. Re: auto load index.php

    What webserver are you using?

    If it is apache find this line.
    Code:
    DirectoryIndex index.html
    and add index.php on the end of it so that it looks like
    Code:
    DirectoryIndex index.html index.php
    Reply With Quote Reply With Quote
  10. #4
    unclekyky's Avatar
    Join Date
    Sep 2004
    Age
    22
    Posts
    5,184
    Rep Power
    13
  11. unclekyky is on a distinguished road
  12. Re: auto load index.php

    Quote darkecho originally posted: View Post
    What webserver are you using?

    If it is apache find this line.
    Code:
    DirectoryIndex index.html
    and add index.php on the end of it so that it looks like
    Code:
    DirectoryIndex index.html index.php
    Or add index.php first if you have both index.html and index.php in the directory.
    Spore-Game - The Ultimate Spore Fan-Site
    Abnegating Avunculicide Since 1601 | YC Wiki - "Quidquid latine dictum sit, altum sonatur."
    Reply With Quote Reply With Quote
  13. #5
    Join Date
    Oct 2006
    Posts
    94
    Rep Power
    6
  14. hendy is on a distinguished road
  15. Re: auto load index.php

    it works, thank you so much umang, darkecho, unclekyky
    Gbu all
    Reply With Quote Reply With Quote

Similar Threads

  1. Is there an "acceptable" load time for a PHP page?
    By sirjavabean in forum PHP Scripting
    Replies: 7
    Last Post: 08-26-2007, 03:06 AM
  2. CSS Centering with Margin: auto not working!
    By Patabugen in forum HTML/CSS Coding
    Replies: 4
    Last Post: 03-09-2007, 03:22 PM
  3. Article on Load Testing Web Sites
    By martinig in forum General Web Programming
    Replies: 1
    Last Post: 02-04-2006, 10:54 PM
  4. How to make pages load faster?
    By Atolar in forum General Web Programming
    Replies: 15
    Last Post: 02-02-2006, 03:21 PM
  5. Surf Junky - Be paid to auto surf - Too good to be true?
    By Shane in forum Chit Chat and Hangout
    Replies: 160
    Last Post: 04-05-2005, 10:51 AM