apache - Laravel 向服务器发送 10 次重定向?

标签 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 

当尝试使用laravel做路由时。我的路线如下:

Route::get('/', 'HomeController@showWelcome');
Route::get('history', 'HistoryController@showHistory');

还有我的.htaccess:

<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On

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

还有我的别名:

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>

最佳答案

我也遇到了这个问题,我通过 .htaccess 文件中的以下行解决了这个问题:

RewriteBase /

关于apache - Laravel 向服务器发送 10 次重定向?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16885467/

相关文章:

apache - 502 Bad Gateway nginx/1.11.5 在 docker 中运行

regex - 这是否可以使用正则表达式来实现?

postgresql - 在 ssl 模式下使用 PostgreSQL 的 Laravel

php - Laravel 有很多子查询

java - 收到拒绝访问此文件 localhost_access_log.2014-08-30.txt 的 apache tomcat 错误?

java - Tomcat 一直要求输入密码和用户名

linux - 文件夹需要身份验证

.htaccess - 将http重定向到https,然后将其重定向到子域的文件夹?

.htaccess - mod_rewrite 所有 robots.txt 请求到默认文件,服务器范围

mysql - 上传到服务器后,输出json的所有数字都是字符串