【问题标题】:Laravel 4.2 route 404 file not found error -- htaccess errorLaravel 4.2 route 404 file not found 错误——htaccess 错误
【发布时间】:2016-08-21 16:23:30
【问题描述】:

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

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

    <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>

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

【问题讨论】:

  • 谢谢大家,我得到了答案..

标签: php .htaccess laravel routes


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2020-04-12
    • 1970-01-01
    • 2011-11-29
    • 2019-12-10
    • 1970-01-01
    • 1970-01-01
    • 2021-12-30
    • 2016-10-05
    • 1970-01-01
    相关资源
    最近更新 更多