.htaccess question

Discussion in 'Apache' started by dv88, Mar 24, 2006.

  1. #1
    Hello

    Does anyone know if I can include these 2 directives within the .htaccess file. For example, I want to parse .html pages for SSI and PHP:

    AddType text/x-server-parsed-html .html
    AddType application/x-httpd-php .html .htm

    However, this does not seem to work, I can use one by itself but not both.

    Thanks
    Dave
     
    dv88, Mar 24, 2006 IP
  2. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #2
    It should be:

    AddHandler server-parsed .html
    AddType application/x-httpd-php .html .htm
     
    Mystique, Mar 24, 2006 IP