index.htm vs index.php

Discussion in 'HTML & Website Design' started by wil888, Aug 23, 2007.

  1. #1
    I have a website with a index.htm page. I am installing wordpress and I'd like to ask if index.php will supercede index.htm since it i dont want wordpress to showup while I am constructing it.

    thanks
     
    wil888, Aug 23, 2007 IP
  2. ::Mike::

    ::Mike:: Peon

    Messages:
    826
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't know what you mean :S.
     
    ::Mike::, Aug 23, 2007 IP
  3. detz

    detz Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, well, by default. You can change this but usually index.php will execute before index.htm.
     
    detz, Aug 23, 2007 IP
  4. Noddegamra

    Noddegamra Peon

    Messages:
    1,013
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #4
    delete index.htm

    only use what you need. :)
     
    Noddegamra, Aug 23, 2007 IP
  5. wil888

    wil888 Peon

    Messages:
    178
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    my index.htm says that the page is under construction. So while contructing the website with joomla im afraid that index.php will supercede. is this correct?
     
    wil888, Aug 23, 2007 IP
  6. Lethal7

    Lethal7 Active Member

    Messages:
    2,262
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #6
    try it out, i doubt anybody will see it in the time it take you to work out stuff.

    you could aslo try it by creating a subfolder.
     
    Lethal7, Aug 23, 2007 IP
  7. detz

    detz Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You could edit the index.php file and put a condition like if it's not your IP then forward to index.htm instead.
     
    detz, Aug 23, 2007 IP
  8. wil888

    wil888 Peon

    Messages:
    178
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I will probably edit it later in wee hours
     
    wil888, Aug 23, 2007 IP
  9. Redemption.

    Redemption. Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    PHP is way better. It allows for dynamic code also.
     
    Redemption., Aug 23, 2007 IP
  10. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #10
    Call your file maintainence.html, upload that, then set this line in your htaccess file:
    Directory Index maintainence.html
    Code (markup):
    Upload that, and you're done.
     
    Synchronium, Aug 23, 2007 IP
  11. Sohan

    Sohan Peon

    Messages:
    2,330
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    0
    #11
    On most servers from what I remember it would go:

    index.html -> index.php -> index.htm
     
    Sohan, Aug 23, 2007 IP
  12. Noddegamra

    Noddegamra Peon

    Messages:
    1,013
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #12

    This is probably the best method to take :)
     
    Noddegamra, Aug 23, 2007 IP
  13. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #13
    ^ Sohan is right, change index.htm to index.html

    Synchronium, the correct DirectoryIndex directive should be:
    
    DirectoryIndex maintainence.html
    
    Code (markup):
     
    VimF, Aug 23, 2007 IP
  14. webdevconcepts

    webdevconcepts Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Change htm to html, but like was said above, php is the ultimate due to dynamic code abilities.
     
    webdevconcepts, Aug 23, 2007 IP
  15. Magnus

    Magnus Peon

    Messages:
    164
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #15
    It depends on what order it is in the server config. As said earlier you can override that with a .htaccess file
     
    Magnus, Aug 23, 2007 IP
  16. Zepo.

    Zepo. Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Usually the index.htm will load insteal of the php.
     
    Zepo., Aug 23, 2007 IP
  17. wil888

    wil888 Peon

    Messages:
    178
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #17
    which is which?
     
    wil888, Aug 23, 2007 IP
  18. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #18
    Yeah, you're right.
     
    Synchronium, Aug 23, 2007 IP
  19. wil888

    wil888 Peon

    Messages:
    178
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #19
    how will I edit the .htaccess?
     
    wil888, Aug 23, 2007 IP
  20. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #20
    Windows won't let you create a .htaccess file (since it has no name before the extension) so open command prompt ( run --> 'cmd' ), type in:

    cd c:\website\path\
    Code (markup):
    to get to the directory your website is followed by:
    echo DirectoryIndex maintainence.html > .htaccess
    Code (markup):
    then find the newly created htaccess file in your website directory and upload it.

    If you already have one, open it in notepad.
     
    Synchronium, Aug 23, 2007 IP