.htaccess problem and apache conf

Discussion in 'Apache' started by dannyd, Sep 17, 2008.

  1. #1
    whenever I set a directive in the .htaccess file it causes my site to go down with a "internal misconfiguration ..".

    I set the AllowOveride All in the <directory> node in the httpd.conf file.


    I want to set a 404 redirect but once I add the

    ErrorDocument 404 /index.html

    It causes the site to go won.

    What could be the problem ?
     
    dannyd, Sep 17, 2008 IP
  2. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    you need to set alias directory first where the index.html is located
    for example

    Alias /errorfolder/ /path/where/is/directory

    then put this on your httpd.conf

    ErrorDocument 404 /errorfolder/index.html

    i had posting it on this forum before, try search it :)
     
    nimhost, Sep 18, 2008 IP