.htaccess password protected folder goes to 404 page

半城伤御伤魂 提交于 2019-12-05 08:59:38

I don't understand why but it seems adding below line to .htaccess inside protected folder fixed this issue:

ErrorDocument 401 "Authorisation Required"

I've found this fix online but without explanation why it actually works that way. Anyone can add explanation? It just feels like it really shouldn't be like that.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!