Results 1 to 5 of 5

Thread: .Htpassword Redirect?

  1. #1
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635

    .Htpassword Redirect?

    Does anyone have the coding handy to redirect a surfer to a different page if they dont enter a correct username + password in to a .htaccess password box?

    Im trying to setup a basic 404 page for it cant figure out the correct code

    Regards,

    Lee


  2. #2
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    I think that is error code 401 - Unauthorized

    simply place this in your site's htaccess file
    ErrorDocument 401 http://www.domain.com/jointologin.html


    cheers,
    Luke


  3. #3
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496


  4. #4
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635
    Thanks Luke

    I guess that explains why my 404 wasnt working LOL

    Regards,

    Lee


  5. #5
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    - yeah that would explain things.

    cheers,
    Luke


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •