如题,网页上还显示You don't have permission to access / on this server.
laravel是按照官网上的步骤装的,mod_rewrite开了,.htaccess也改了,都没用。
我特别不理解laravel框架,它的根目录到底是哪个?为什么根目录下没有index.php呢?
求解答。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
首先看下 Apache 的配置文件 http.conf
找到上方的的代码,如果是
Deny from all, 修改成allow from all试试Laravel运行会先加载public下的index.php,用户访问的url会通过设置的路由转换到Controller中的某个方法。这是权限问题 你应该看下状态码表解释