首页 > 其他 > 详细

laravel5的坑

时间:2015-07-29 15:32:50      阅读:234      评论:0      收藏:0      [点我收藏+]

以此记录学习laravel的一些问题

问题: 设置路由后页面总是404 not found

解决:需要在apache 配置文件里添加对laravel文件夹的访问

<Directory "D:\WAMP\laravel\public">
   
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #此处必须为all none不行
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    #Require all granted
    #Allow Order not supported
    Allow from all 
    Require all granted 
</Directory>

 

laravel5的坑

原文:http://www.cnblogs.com/derrck/p/4685864.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!