.htaccess makes people download files

Discussion in 'HTML & Website Design' started by Kngavl, Sep 23, 2007.

  1. #1
    I've been trying to add coop advertising for a while now, also been trying wiht link vault however both require me to write some stuff in a .htaccess file. Whenever I do, after about 2 minutes I refresh one of my pages and it asks me to download a file. I don't know why though, and the page never laods up and this happens on every page.
    The htaccess only has this written in it, nothing else:

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


    Btw I don't even know what it is or what it's supposed to do so be umm, understandable for me plese :). <----Newb.
     
    Kngavl, Sep 23, 2007 IP
  2. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #2
    You should try asking in the Apache section (link below)

    http://forums.digitalpoint.com/forumdisplay.php?f=49

    And by the way, that just tells Apache to parse all files that end with .php, .htm and .html as php (because by default PHP isn't parsed in .htm and .html).
     
    soulscratch, Sep 23, 2007 IP
  3. Kngavl

    Kngavl Peon

    Messages:
    964
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Oh okay sorry, I never knew it was apache.
    thxs
     
    Kngavl, Sep 23, 2007 IP