Help with .htaccess file

Discussion in 'Apache' started by endangeredsp, May 22, 2007.

  1. #1
    Hello I need help with my htaccess file. My hosting provider has given me access to it via ftp because I requested that I have a custom error page for bad urls: The content of the file was originally:

    -------------BEGIN CONTENT
    # -FrontPage-

    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName 1075813.1115303
    AuthUserFile /data/10/1/75/161/1075813/user/1115303/htdocs/_vti_pvt/service.pwd
    AuthGroupFile /data/10/1/75/161/1075813/user/1115303/htdocs/_vti_pvt/service.grp

    Options -Indexes
    -------------------END OF CONTENT

    Then I added the line:
    ErrorDocument 404 /notfound.asp

    ..to the file and reuploaded it. But when I type in a bad url for my site, it still doesn't work. Am I doing something wrong? The permissions on the .htaccess file is 744, are those right?

    Thanks in advance for your help.
     
    endangeredsp, May 22, 2007 IP
  2. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    cyanide, May 23, 2007 IP
  3. endangeredsp

    endangeredsp Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Same thing. Doesn't work.
     
    endangeredsp, May 25, 2007 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,911
    Likes Received:
    4,556
    Best Answers:
    124
    Trophy Points:
    665
    #4
    If you type in the name of the notfound.php file it comes up, right?

    the basic code you added looks fine.
     
    sarahk, Jun 4, 2007 IP