未找到Laravel状态,缺少路线

时间:2015-05-26 09:52:02

标签: laravel-4 vhosts

我正在尝试在Wamp服务器上安装Laravel,我收到此错误:

{"status":"Not Found","error":true,"error_code":"missing_route","message":"Route not found.","data":[]}

现在正在寻找一段时间,但无法弄清楚它是什么。我检查并三重检查我是否在hosts文件中添加了corectly我的项目,如果虚拟主机设置正确,如果激活了重写模块,并且公共文件夹中的.htaccess文件是否应该如此。

主机文件:

127.0.0.1   app.my-site.com

虚拟主机

<VirtualHost *:80>
    ServerAdmin webmaster@my-site.com
    DocumentRoot "C:/wamp/www/my-site/public"
    ServerName app.my-site.com
    <Directory "C:/wamp/www/my-site/public">
       AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "logs/my-site-error.log"
    CustomLog "logs/my-site-access.log" common
</VirtualHost>
公共文件夹中的

.htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    Options +FollowSymLinks
    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

有人能说出可能出错的地方吗?

0 个答案:

没有答案