.htaccess

Discussion in 'Co-op Advertising Network' started by toddieg, Apr 28, 2005.

  1. #1
    ok i finally got it to work on the index.php page.

    now i am having troubles with the .htaccess

    i have one page that's .php (the index page) and the rest are static html ...i'd like to keep them that way if possible. when i create a .htaccess file with this in it

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

    it gives me an internal server error with the html pages. i've never done this before, so any help would be appreciated. do i put the .htaccess file in the /public_html/ folder (where my files are located), or in the root directory?

    is the file called .htaccess or htaccess ?

    thanks.
     
    toddieg, Apr 28, 2005 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    With the .
     
    T0PS3O, Apr 28, 2005 IP
  3. toddieg

    toddieg Peon

    Messages:
    252
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    k, thanks...

    sill doesn't work though... any other suggestions on how to fix this problem?
     
    toddieg, Apr 28, 2005 IP
  4. kyle422

    kyle422 Peon

    Messages:
    290
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try this AddType application/x-httpd-php .htm .html
     
    kyle422, Apr 28, 2005 IP
  5. toddieg

    toddieg Peon

    Messages:
    252
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #5
    no dice for that one either :(
     
    toddieg, Apr 28, 2005 IP
  6. air

    air Active Member

    Messages:
    359
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    90
    #6
    This one?
    
    AddHandler php-script .html
    
    Code (markup):
     
    air, Apr 28, 2005 IP
  7. toddieg

    toddieg Peon

    Messages:
    252
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #7
    that one doesn't give me an error, but doesn't work either....

    so weak... i have to get a hold of my webhosts i think... i've tried so many different files, but either it doesn't work or i get a server error.
     
    toddieg, Apr 28, 2005 IP
  8. air

    air Active Member

    Messages:
    359
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    90
    #8
    air, Apr 28, 2005 IP
  9. toddieg

    toddieg Peon

    Messages:
    252
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #9
    thanks air.. still no luck...i've been doing lots of research and trying different files all day... even the ones that should work don't, which is why i think it's a server issue that i need to discuss w/my web hosts. i'l let you know how it goes.
     
    toddieg, Apr 28, 2005 IP
  10. air

    air Active Member

    Messages:
    359
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    90
    #10
    Found some things on the web. I'm not a php expert but....

    
    AddType x-mapp-php4 .htm
    
    Code (markup):
    
    <Files *.html>
    AcceptPathInfo on
    SetOutputFilter php
    SetInputFilter php
    </Files>
    
    Code (markup):
    Well still the best is to ask your host. :)
     
    air, Apr 28, 2005 IP
  11. air

    air Active Member

    Messages:
    359
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    90
    #11
    I'm bored that I have to change hosting because some rewrite modules are not seted up :eek:
     
    air, Apr 28, 2005 IP