SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Feb 2000
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I want index.php to replace index.htm as the default document on a directory structure.
    Is that posibe? how?

    thanx

  2. #2
    SitePoint Enthusiast Daniel's Avatar
    Join Date
    Dec 1999
    Location
    Belfast
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try it and see if it works first of all (delete your index.htm and upload your index.php). If it doesn't, then contact the server administrator and ask him to change it (presuming, of course, that you're allowed to use php with your current account).


    ------------------
    Daniel Irvine
    f-free - Free Stuff and Freebies!

  3. #3
    exit();
    Join Date
    Jul 2000
    Posts
    759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do not delete the index.html, just edit it to make it forward to the index.php file using Meta Refresh tags. That is probably the easiest and fastest way that I can think of.
    Or I think you could use .htaccess files, though I am not sure about that.
    ------------------
    Webmaster's Network
    The Ultimate Webmaster Resource Center




    [This message has been edited by Matt Kaufman (edited February 05, 2000).]

  4. #4
    RAGE
    SitePoint Community Guest
    couple of ways

    1. edit a .htaccess file in the home directory and put the following :

    DirectoryIndex index.php

    2. link the html to the php .. you would need to telnet to the server to do this.. after deleting the html, telnet in, cd to the directory , and type

    ln -s index.html index.php

    3. ask the administrator of the server to add index.php to his apache config file in the "DirectoryIndex" directive


    have a nice day
    -----------------------------
    RAGE
    Kryogen Networks - when you want something else

  5. #5
    SitePoint Member
    Join Date
    Feb 2000
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    isn't there a way to change it for onlu some directories?

  6. #6
    SitePoint Enthusiast
    Join Date
    Dec 1999
    Location
    Hartford, Connecticut, USA
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When I had this problem I just sent an e-mail to the friendly 24/7 technical support department at my web hosting company (http://www.westhost.com/). In five minutes they changed it for me.


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
  •