简体   繁体   English

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

[英]Laravel 4.2 route 404 file not found error — htaccess error

temporary site is: http://173.254.74.167/eccaorgn/home 临时站点是: http : //173.254.74.167/eccaorgn/home

which is not working. 这是行不通的。 but while i add http://173.254.74.167/eccaorgn/index.php/home , it work. 但是当我添加http://173.254.74.167/eccaorgn/index.php/home时 ,它可以工作。 so i want to remove this index.php. 所以我想删除这个index.php。 mine htaccess code is: 我的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>

so tell me guys what to do in this case i try all my best.. but not get any proper solutions. 所以告诉我在这种情况下该怎么办,我会尽力而为..但没有得到适当的解决方案。

我解决了我的问题,为644提供了默认文件夹访问权限

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM