首页 > 代码库 > 关于php laravel5.1框架出现路由找不到的情况
关于php laravel5.1框架出现路由找不到的情况
开启apache模块
在apache配置文件
LoadModule rewrite_module modules/mod_rewrite.so前面的#去掉
然后修改 vim /etc/init.d/httpd/conf/httpd.conf
<VirtualHost *:80>
ServerName www.nvyuanshiguang.club
DocumentRoot /var/www/html/jixiaoqin/public
<Directory "/var/www/html/jixiaoqin/public">
Options Indexes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
</Directory>
</VirtualHost>修改成下方的配置
<VirtualHost *:80>
ServerName www.nvyuanshiguang.club
DocumentRoot /var/www/html/jixiaoqin/public
<Directory "/var/www/html/jixiaoqin/public">
Options Indexes FollowSymLinks
AllowOverride all(none laravel的路由就不好用了,报错url路径页面不在服务器上)
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
关于php laravel5.1框架出现路由找不到的情况