我有一个允许用户共享笔记的应用程序。
前端采用php编写,后端采用mysql数据库驱动。前端有一个编辑部分,使用 Ueditor(基于 Web 的编辑器)。问题是,如果我尝试在服务器上编辑少量数据,它将起作用,但如果我尝试编辑大量数据,它将不起作用并显示此错误。
Forbidden
You don't have permission to access /editnotes.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
此外,它在本地主机中运行得很好。
最佳答案
当提供本地 URL 路径时,ErrorDocument
指令期望该路径完全符合 DocumentRoot
的要求。
将其放入您的 .htaccess
文件
ErrorDocument 403 /errorpagedir/403page.html
/errorpagedir/403page.html
是您的 403 错误页面。
关于php - 大量数据出现在服务器而非本地主机中的禁止错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23156664/