Password protected member area htaccess...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Scoobs
    Confirmed User
    • Jul 2001
    • 492

    #1

    Password protected member area htaccess...

    I was just wondering what to put in my htaccess file for the members directory of a paysite to redirect people who dont put in the right password or username to another page? I have tried:

    ErrorDocument 401 http://www.sitename.com/page.html

    but it isnt working? Is it possible? What am I doing wrong?

    Thanks!
  • Amputate Your Head
    There can be only one
    • Aug 2001
    • 39075

    #2
    Cuz you should be using Errordocument 403.

    ------------------

    60% RECURRING!
    SIG TOO BIG

    Comment

    • Scoobs
      Confirmed User
      • Jul 2001
      • 492

      #3
      Thanks Amp, but 403 doesnt work either.

      When I go to the page and enter the wrong password or whatever, I get this:

      401 Authorization Required

      in the header.

      Any ideas?

      Comment

      • Scoobs
        Confirmed User
        • Jul 2001
        • 492

        #4
        bump...

        Can anyone help me out?...

        Please?

        Comment

        • Jer
          God is Brazilian
          • Feb 2001
          • 10601

          #5
          Have you tried to put just this line in an htaccess at your root directory ? Have no idea if it will work, but try it.

          Comment

          • Naughty
            Confirmed User
            • Jul 2001
            • 6482

            #6
            http://www.eol.ca/support/business/password/

            HTH

            ------------------

            - the Official TGP2 Counter --> signup now for realtime stats, toplists and more...!
            - Submit Your Galleries Here to The Naughty Daily
            - EraserCash - $35/signup, unique commissionprogram
            seks.ai for sale - ping me

            Comment

            • awechen
              Confirmed User
              • Oct 2001
              • 162

              #7
              which apache version u using ?
              ah you have been blessed with 72 virgins?

              Comment

              • XM
                Confirmed User
                • Jan 2001
                • 406

                #8
                I think you cannot redirect from 401 to another URL, but only to another page:
                ErrorDocument 401 /gohere.html

                means gohere.html in your root directory will open. If you put http://www.mydomain.com/gohere.html there it won't work.

                XM


                ------------------
                TOPBUCKS - EARN 40$/SIGN UP ,20 niche sites, multiple tours...
                AUTSON - Affordable hosting with GREAT support starting at $9.99/month + 2 weeks for free...

                Comment

                • awechen
                  Confirmed User
                  • Oct 2001
                  • 162

                  #9
                  Originally posted by XM:
                  I think you cannot redirect from 401 to another URL, but only to another page:
                  ErrorDocument 401 /gohere.html
                  no. is works.
                  --
                  andreas
                  ah you have been blessed with 72 virgins?

                  Comment

                  Working...