htaccess help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kennyxyz
    Registered User
    • Jan 2002
    • 69

    #1

    htaccess help

    Can anyone advice how to redirect user from 401 error page to a custom page in htaccess.
    Many Thanks
    Great Asian Movies Sponsor
    <a href=http://www.javmodel.com/webmaster/index.htm>JAVModel--We host the Banner for you</a> <br><a href=http://www.japanhardcoremovies.com/webmaster.htm>Japanese Hardcore Movies</a>
  • B40
    Confirmed User
    • Jul 2001
    • 7020

    #2
    ErrorDocument 401 http://www.domain.com/404.html

    Same thing for 404, 403 etc, just change the #

    Comment

    • kennyxyz
      Registered User
      • Jan 2002
      • 69

      #3
      Thanks
      Great Asian Movies Sponsor
      <a href=http://www.javmodel.com/webmaster/index.htm>JAVModel--We host the Banner for you</a> <br><a href=http://www.japanhardcoremovies.com/webmaster.htm>Japanese Hardcore Movies</a>

      Comment

      • Nurgle
        Confirmed User
        • Feb 2001
        • 2337

        #4
        Thought i would just add a .htaccess tutorial page which im sure you will find interesting as well

        http://www.vnwr.com/resources/tutorials/htaccess.html

        cheers
        Nurgle
        I am not a megalomaniac.. I just rule the world
        Need Quality Hardlinks? We have several packages and custom deals available.
        *High Quality Hard Links For Sale*
        ICQ: 394016570

        Comment

        • kennyxyz
          Registered User
          • Jan 2002
          • 69

          #5
          Hello,
          It seems not work to me,
          Here is a sample of my htaccess

          deny from all
          allow from xxx.xxx.xxx.xxx
          allow from xxx.xxx.xxx.xxx
          AuthUserFile /usr/home/xxxxxx/member.xxxyyyzzz.com/cgi-bin/.htpasswd
          AuthGroupFile /dev/null
          AuthName "Members Area"
          AuthType Basic


          require valid-user

          <Files .*>
          order allow,deny
          deny from all
          </Files>
          satisfy any

          I intend to add a line ErrorDocument 401 http://xxx.com/error.html into the htaccess
          But I don't know where I should place this in the file.
          Does anybody here help?
          Thanks!!
          Great Asian Movies Sponsor
          <a href=http://www.javmodel.com/webmaster/index.htm>JAVModel--We host the Banner for you</a> <br><a href=http://www.japanhardcoremovies.com/webmaster.htm>Japanese Hardcore Movies</a>

          Comment

          • TheDoc
            Too lazy to set a custom title
            • Jul 2001
            • 13827

            #6
            Just add it any place in the .htaccess file.

            I think 401 errors "bad requests" have to be done to a path and not to a url though. If that doesnt work try putting a " before the URL. Like "http://ect... If that doesnt work you have to put the full path to the error doc.
            ~TheDoc - ICQ7765825
            It's all disambiguation

            Comment

            Working...