.htaccess problem

Discussion in 'PHP' started by smetten, Sep 6, 2006.

  1. #1
    Hi,

    I want to parse html as php
    i added this line of code to my .htaccess file.
    But each time i try to load the page where there is php code it asks if i want to download the page and it doesn´t load the page.

    any ideas?

    This is how my .htaccess file looks.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^xorak\.com [nc]
    RewriteRule (.*) http://www.xorak.com/$1 [R=301,L]
    
    AddType application/x-httpd-php .html
    PHP:
     
    smetten, Sep 6, 2006 IP
  2. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #2
    Replace your AddType line with
    AddHandler application/x-httpd-php .html
    Code (markup):
     
    wmtips, Sep 6, 2006 IP