index.htm vs index.php

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

  1. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Unless you wish to use both file extensions in order to differentiate between serving MIME/Content types. For instance I use .htm extensions to serve my W3C HTML/ISO-HTML pages as text/html and then have included ..........

    AddType application/xhtml+xml html

    ......... in my .htaccess file in order to use the .html extension for XHTML pages thereby serving them as application/xhtml+xml documents if I wish to have XML functionality. I use server side PHP code to serve Content Negotiation pages -- with .php extensions.

    James
     
    jamesicus, Aug 23, 2007 IP