Monday, October 07, 2013

custom redirect (401, 404) using meta refresh

ref: http://stackoverflow.com/questions/1726860/apache-authentication-redirect-on-failure-reliably


    AuthUserFile /path/to/users
    AuthName "This is protected area"
    AuthGroupFile /dev/null
    AuthType Basic
    Require valid-user

    #ErrorDocument 401 /register.html
    ErrorDocument 401 "< html>< meta http-equiv=\"refresh\" content=\"0;url=/register.html\">"

No comments:

Related Posts Plugin for WordPress, Blogger...