why doesnt my website automatically go to index.php?

Discussion in 'Programming' started by web893, Jan 13, 2008.

  1. #1
    web893, Jan 13, 2008 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Each server has a list of default files it will server up as default if a file isnt specified. If index.php isnt being served up then either one of the file types that is a higher on the list exists or index.php isnt on the list. Most servers allow you to modify the default files list via the control panel.
     
    AstarothSolutions, Jan 13, 2008 IP
    web893 likes this.
  3. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #3
    Do you also have an index.htm or index.html in the root?
     
    kentuckyslone, Jan 13, 2008 IP
  4. contentsis

    contentsis Peon

    Messages:
    69
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You may also like to look for the existence of a default.html or default.htm file in the root.
     
    contentsis, Jan 13, 2008 IP
    web893 likes this.
  5. web893

    web893 Peon

    Messages:
    140
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes i do have index.php
     
    web893, Jan 13, 2008 IP
  6. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #6
    You will get a better solution if you email Hostgators support
     
    kentuckyslone, Jan 13, 2008 IP
    web893 likes this.
  7. Agent_Dweeb

    Agent_Dweeb Peon

    Messages:
    5,607
    Likes Received:
    384
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I think you can use .htaccess to set your default page.

    Create .htaccess (with the dot)

    Then copy and paste this in the file

    DirectoryIndex index.php
     
    Agent_Dweeb, Jan 13, 2008 IP
    web893 likes this.
  8. mickscool

    mickscool Active Member

    Messages:
    373
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Put a index.htm or index.html file and see if that works, if it does, you can redirect that to the index.php

    Like some of the guys already said above,contact your hosting provider.You can also set a redirect in your apache conf file if you know how to do it.
     
    mickscool, Jan 13, 2008 IP
    web893 likes this.
  9. web893

    web893 Peon

    Messages:
    140
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thank you everyone. It works now
     
    web893, Jan 14, 2008 IP