Laravel错误与.htacces文件

时间:2016-01-08 17:38:02

标签: php .htaccess laravel homestead

我想我的laravel项目中的.htacces文件存在问题,我试图将其放在网上。

我在本地与宅基地工作(我第一次用它建造一个项目。)

这就是我在homestead.yaml文件中的内容:

>  - map: domain.dev
>       to: /home/vagrant/Code/domain

但现在唯一有效的路线就是这条路线:

  

/

当我开始我的项目时,我已经改变了一些东西,所以我没有把它放在:

  

/公共

在我的域名之后。这是我的文件结构:

enter image description here

我目前的.htaccess文件:

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

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

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

确切的错误是:

  

未找到

     

在此服务器上找不到请求的URL / admin / tickets。

     

此外,尝试时遇到404 Not Found错误   使用ErrorDocument来处理请求。

编辑:

错误日志:

[Fri Jan 08 2016] [:error] [pid 152074] [client ] File does not exist: /home/ev/public_html/domain.nl/local/index.php
[Fri Jan 08  2016] [authz_core:error] [pid ] [client ] A1630: client denied by server configuration: /home/ev/public_html/domain.nl/local/.htaccess
相关问题