启动laravel 5 / public时的周期性重定向?我一路查了,app.php / autoload.php,没事的。在被路由之前出现。我检查了一下,离开了罗丝。原木是空的。
serenity / public / public / public / public / public / public / public / public / public /表示这样的计划错误。去哪挖,亲爱的?我添加的是通过htpps运行的站点,而不是http。我听说有一些港口可能会被使用。
有可疑的server.php和Apache。这是代码
阿帕奇
<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]
Server.php
<?php
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';有什么问题吗?
发布于 2015-12-19 14:38:12
文档根目录需要指向公共目录,而不是项目根目录。这样就可以直接加载index.php。对于apache,不使用server.php,这是在运行手工服务时使用的。
https://stackoverflow.com/questions/34370813
复制相似问题