Laravel通过10次重定向发送服务器?

use*_*484 11 apache mod-rewrite laravel laravel-4

获取错误消息:

[Sun Jun 02 12:43:33.579095 2013] [core:error] [pid 4964:tid 808] [client 127.0.0.1:56964] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a 
Run Code Online (Sandbox Code Playgroud)

当试图使用laravel进行路由时.我的路线如下:

Route::get('/', 'HomeController@showWelcome');
Route::get('history', 'HistoryController@showHistory');
Run Code Online (Sandbox Code Playgroud)

而我的.htaccess:

<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
Run Code Online (Sandbox Code Playgroud)

我的别名:

Alias /wunhopkuendo/ "c:/wamp/www/wunhopkuendo/public/" 

<Directory "c:/wamp/www/wunhopkuendo/public/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order allow,deny
    Allow from all
</Directory>
Run Code Online (Sandbox Code Playgroud)

Sam*_*xas 28

我也有这个问题,我用以下行解决了这个问题:

RewriteBase /
Run Code Online (Sandbox Code Playgroud)


Rod*_*iva 11

如果您在子文件夹中使用Laravel,则需要按照以下步骤操作:

*考虑在默认的instalation目录(c:\ wamp)上使用WAMP

使用Laravel安装程序的子文件夹在.htaccess文件中插入RewriteBase行.

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase/subfolder
RewriteCond%{REQUEST_FILENAME}!-f
RewriteRule ^ index.php [L]
<IfModule>

将应用程序URL设置在文件c:\ wamp\www\subfolder\config\app.php中

'url'=>'hggp:// localhost/subfolder',

使用以下内容在别名目录c:\ wamp\alias\subfolder.conf上创建配置文件:

别名/子文件夹"c:/ wamp/www/testando/public"

<目录"c:/ wamp/www/subfolder/public">
选项索引FollowSymLinks MultiViews
AllowOverride all
允许来自所有
</ Directory>

这有效!:)