有人知道如何让laravel公共文件夹中到另一个文件夹laravel一些途径,目前的文件夹结构:Laravel公共/子文件夹中的另一个源代码
public
index.php <==== this is laravel index.php
.htaccess <==== this is laravel default .htaccess
subfolder <==== this is not laravel php code files
在我的本地
,我可以访问子文件夹的网址http://example.dev/subfolder
但在我的直播现场,http://example.com/subfolder扔我
NotFoundHttpException的错误RouteCollection.php线161:
这里是laravel .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>
本地/在线服务器的源代码是同步的,我想这是一些服务器的设置问题,但我不知道什么是关键字,欣赏所有帮助
顺便说一句,laravel 5.2版本
还有一些其他程序员在纯php中完成的代码,所以必须这样做 – user259752