Post a sample of a .htaccess 401, 403 & 404

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • The Click
    Confirmed User
    • Apr 2003
    • 1685

    #1

    Post a sample of a .htaccess 401, 403 & 404

    Need a nice clean working sample of this. Can anyone help? I don't like using the servers customizer no more.


    ICQ: 31-30-30
  • baddog
    So Fucking Banned
    • Apr 2001
    • 107089

    #2
    here - don't say I never did anything for you

    Comment

    • The Click
      Confirmed User
      • Apr 2003
      • 1685

      #3
      hey thanks man.


      ICQ: 31-30-30

      Comment

      • MuleScrote
        Confirmed User
        • Dec 2002
        • 4601

        #4
        Originally posted by baddog
        here - don't say I never did anything for you
        sweet
        ICQ 78681003

        Comment

        • vending_machine
          Confirmed User
          • Jun 2002
          • 1070

          #5
          Originally posted by baddog
          here - don't say I never did anything for you
          Hmm, that example isn't 100% correct. You have to specify a local document for 401 redirects, you cannot redirect to a full URI.

          So:
          ErrorDocument 401 /401.html

          instead of:
          ErrorDocument 401 http://somesite/401.html

          Comment

          • baddog
            So Fucking Banned
            • Apr 2001
            • 107089

            #6
            Originally posted by vending_machine


            Hmm, that example isn't 100% correct. You have to specify a local document for 401 redirects, you cannot redirect to a full URI.

            So:
            ErrorDocument 401 /401.html

            instead of:
            ErrorDocument 401 http://somesite/401.html
            I am not the pro, but I will have that looked into. You are the first one to point that out as an error, and since I am not qualified to dispute it, I will let the experts make that determination.

            Comment

            • juicylinks
              So Fucking Banned
              • Apr 2001
              • 122992

              #7
              Originally posted by baddog


              I am not the pro, but I will have that looked into. You are the first one to point that out as an error, and since I am not qualified to dispute it, I will let the experts make that determination.
              he is right it has to point locally

              Comment

              • Fletch XXX
                GFY HALL OF FAME DAMMIT!!!
                • Jan 2002
                • 60840

                #8
                Originally posted by juicylinks


                he is right it has to point locally
                yep.

                Want an Android App for your tube, membership, or free site?

                Need banners or promo material? Hit us up (ICQ Fletch: 148841377) or email me fletchxxx at gmail.com - recent work - About me

                Comment

                • goodgirl
                  Confirmed User
                  • Jul 2001
                  • 1680

                  #9
                  My mess up. I will fix that now. Thanks for pointing it out

                  Comment

                  • baddog
                    So Fucking Banned
                    • Apr 2001
                    • 107089

                    #10
                    Originally posted by goodgirl
                    My mess up. I will fix that now. Thanks for pointing it out
                    See, I go to the pros when they know something I don't. Problem fixed The Click

                    Comment

                    • The Click
                      Confirmed User
                      • Apr 2003
                      • 1685

                      #11
                      Originally posted by baddog


                      See, I go to the pros when they know something I don't. Problem fixed The Click

                      sweet ass. i did not think you could redirct 404 to another URL other than your own...unless using a meta refresh


                      ICQ: 31-30-30

                      Comment

                      • jact
                        Confirmed User
                        • Sep 2002
                        • 9134

                        #12
                        Originally posted by baddog
                        here - don't say I never did anything for you
                        Interesting, yet slightly incorrect.

                        The [NC] denotes that you're telling it No Case.. So you don't need all those fancy capitilizations.

                        But anyhow....
                        Free agent

                        Comment

                        • The Click
                          Confirmed User
                          • Apr 2003
                          • 1685

                          #13
                          you know what, FUCK IT~! I aint using it.


                          ICQ: 31-30-30

                          Comment

                          • directfiesta
                            Too lazy to set a custom title
                            • Oct 2002
                            • 30174

                            #14
                            CPanel takes care of all that in one click ... lol
                            I know that Asspimple is stoopid ... As he says, it is a FACT !

                            But I can't figure out how he can breathe or type , at the same time ....

                            Comment

                            • baddog
                              So Fucking Banned
                              • Apr 2001
                              • 107089

                              #15
                              Originally posted by jact


                              Interesting, yet slightly incorrect.

                              The [NC] denotes that you're telling it No Case.. So you don't need all those fancy capitilizations.

                              But anyhow....
                              again, I am no pro, but every .htaccess file I ever saw had [NC] - maybe it is because our servers are case sensitive?

                              Comment

                              • jact
                                Confirmed User
                                • Sep 2002
                                • 9134

                                #16
                                Originally posted by baddog


                                again, I am no pro, but every .htaccess file I ever saw had [NC] - maybe it is because our servers are case sensitive?
                                Wait, I didn't read it close enough, you have AnyAVSSystem, AnyAVSSystem2 nevermind my post. [NC] is important yes, that's what my point was.
                                Free agent

                                Comment

                                • baddog
                                  So Fucking Banned
                                  • Apr 2001
                                  • 107089

                                  #17
                                  Originally posted by jact


                                  Wait, I didn't read it close enough, you have AnyAVSSystem, AnyAVSSystem2 nevermind my post. [NC] is important yes, that's what my point was.
                                  I know, it was just a test.

                                  Comment

                                  Working...