help me- .htaccess basic question

Discussion in 'PHP' started by cientificoloco, Nov 28, 2006.

  1. #1
    I'm trying to have my host run php scripts on html files. I had no .htaccess file on my root, so I created a text file with this:

    AddType application/x-httpd-php .htm .html

    and put it in the root.

    when I try to see my page, my browser DOWNLOADS the html file as if it was an application.

    please tell me what I did wrong

    Thanks!
     
    cientificoloco, Nov 28, 2006 IP
  2. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    maiahost, Nov 28, 2006 IP
  3. cientificoloco

    cientificoloco Well-Known Member

    Messages:
    1,742
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thanks, that fixed the download part, but the php script is not working. I'll keep trying. btw, the host is godaddy
     
    cientificoloco, Nov 28, 2006 IP
  4. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I am not sure what pannel comes with godaddy but should you have apache handlers in it try adding it from there. Otherwise you can try one extension at a time like :

    AddType x-httpd-php .html
    AddType x-httpd-php .htm
     
    maiahost, Nov 28, 2006 IP