.htaccess issues - Custom Error Documents

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dusen
    Confirmed User
    • Aug 2002
    • 2251

    #1

    .htaccess issues - Custom Error Documents

    I've used cusom error pages in my domains.

    however - I think I'm missing something with regards to the logic. I could NEVER have:

    ErrorDocument 404 /error.html

    I always needed to have

    ErrorDocument 404 http://www.domain.com/error.html

    Almost all the "tutorials" I have seen with regards to this say you can do /error.html instead of the full domain but none explain the difference.

    Why is this? Am I missing an option in my httpd.conf? Do I need to "enable" some sort of virtual directory resolution like followsymlinks?
    Penis Pill Sponsor List and Reviews:
    http://www.pillsponsors.com
  • crockett
    in a van by the river
    • May 2003
    • 76818

    #2
    did you happen to try just plane error.html ? with out the / I also is your htacces is in the same dir as the error.html page?
    In November, you can vote for America's next president or its first dictator.

    Comment

    • Dusen
      Confirmed User
      • Aug 2002
      • 2251

      #3
      Yup on both counts
      Penis Pill Sponsor List and Reviews:
      http://www.pillsponsors.com

      Comment

      • s9ann0
        Confirmed User
        • Sep 2001
        • 4873

        #4
        is there a error.html at / on your domain?

        Comment

        • Dusen
          Confirmed User
          • Aug 2002
          • 2251

          #5
          Originally posted by spanno
          is there a error.html at / on your domain?
          Yes.

          http://www.domain.com/error.html works but
          /error.html or error.html does not.
          Penis Pill Sponsor List and Reviews:
          http://www.pillsponsors.com

          Comment

          • Dusen
            Confirmed User
            • Aug 2002
            • 2251

            #6
            Bump?
            Penis Pill Sponsor List and Reviews:
            http://www.pillsponsors.com

            Comment

            • SuperGuy
              Registered User
              • Jun 2003
              • 38

              #7
              If you're running virtual servers, you should define your error document in httpd.conf (that's what I do) and you can customize it for each domain quite easily.

              It should work with the .htaccess method in the top level of the domain, but I have never had a problem with it in the httpd.conf.

              Comment

              Working...