Laravel 4.2 路由 404 文件未找到错误 -- htaccess 错误


Laravel 4.2 route 404 file not found error -- htaccess error

临时站点是:http://173.254.74.167/eccaorgn/home

这是行不通的。 但是当我添加 http://173.254.74.167/eccaorgn/index.php/home 时,它起作用了。所以我想删除这个索引.php。矿机代码为:

    <IfModule mod_rewrite.c>
   <IfModule mod_negotiation.c>
       Options -MultiViews
   </IfModule>
   RewriteEngine On
   # Redirect Trailing Slashes...
   RewriteRule ^(.*)/$ http://173.254.74.167/~eccaorgn/$1 [L,R=301]
   # Handle Front Controller...
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^ index.php [L]
AddHandler application/x-httpd-php56 .php .php5 .php4 .php3
</IfModule>

所以告诉我在这种情况下该怎么做,我尽力了......但没有得到任何适当的解决方案。

>我解决了我的问题,给了 644 默认文件夹访问权限