# Request exceeded the limit of 10 internal redirects

**URL:** <https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945>\
**Category:** Questions\
**Created:** [July 16, 2024, 12:46pm UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945 "2024-07-16T12:46:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![samclia](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@samclia](https://discourse.slimframework.com/u/samclia)\
**Post date:** [July 16, 2024, 12:46pm UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/1 "2024-07-16T12:46:10Z")

</div>

Good afternoon,

I’m migrating a Slim website and I’m having trouble. There’s a problem with Apache. The local version of the website is working.

Here is the Apache log of the site:

```auto
[Tue Jul 16 12:27:28.306707 2024] [fcgid:info] [pid 3523161:tid 140581598164096] mod_fcgid: Process manager 3523161 started
[Tue Jul 16 12:27:28.308500 2024] [mpm_event:notice] [pid 3523159:tid 140581598164096] AH00489: Apache/2.4.59 (Unix) mod_fcgid/2.3.9 configured -- resuming normal operations
[Tue Jul 16 12:27:28.308564 2024] [mpm_event:info] [pid 3523159:tid 140581598164096] AH00490: Server built: Jun 4 2024 16:17:18
[Tue Jul 16 12:27:28.308571 2024] [core:notice] [pid 3523159:tid 140581598164096] AH00094: Command line: '/usr/alwaysdata/apache/2.4.59/bin/apache -f /home/live-studi-sql/admin/config/apache/apache.conf -D FOREGROUND'
[Tue Jul 16 12:27:28.537440 2024] [core:error] [pid 3523162:tid 140581581555456] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:27:28.663975 2024] [core:error] [pid 3523162:tid 140581564770048] [client 90.27.205.205:0] 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 backtrace., referer: http://live-studi-sql.alwaysdata.net/index.php
[Tue Jul 16 12:37:06.760809 2024] [core:error] [pid 3523162:tid 140581547984640] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:38:49.636713 2024] [core:error] [pid 3523162:tid 140581057591040] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:38:50.410860 2024] [core:error] [pid 3523162:tid 140581040805632] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:38:51.107725 2024] [core:error] [pid 3523162:tid 140581024020224] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:39:00.184606 2024] [core:error] [pid 3523162:tid 140581007234816] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 13:09:21.031762 2024] [mpm_event:notice] [pid 3523159:tid 140581598164096] AH00491: caught SIGTERM, shutting down
[Tue Jul 16 13:09:21.043150 2024] [fcgid:info] [pid 3523161:tid 140581598164096] mod_fcgid: Process manager 3523161 stopped

```

I follow tis page for my local version:  
[https://www.slimframework.com/docs/v4/start/web-servers.html](https://www.slimframework.com/docs/v4/start/web-servers.html)

Here are the .htaccess files i use for the website

```auto
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

```

and

```auto
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]

```

I migrated another website with the same .htaccess successfully.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [July 16, 2024, 2:00pm UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/2 "2024-07-16T14:00:13Z")

</div>

You can try to remove all routes execpt the home route to see if the behavior is the same.

---

<div class="post-metadata">

**Author:** ![samclia](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@samclia](https://discourse.slimframework.com/u/samclia)\
**Post date:** [July 16, 2024, 2:39pm UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/3 "2024-07-16T14:39:47Z")

</div>

Hello odan,

The error is the same:

my route.php:

```php
?php

use App\Controllers\ControlleurFormulaire;

use Slim\App;
use Slim\Views\PhpRenderer; 
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use App\Controllers\ControlleurCommentaires; // Add this line to import the missing class

//pages Web - icônes de menu
$renderer = new PhpRenderer( __DIR__. "/../src/Views");

$app->get('/accueil', function (Request $request, Response $response, $args) use ($renderer) {
    return $renderer->render($response, 'accueil.php'); 
 });

```

the apache log:

```auto
[Tue Jul 16 12:27:28.308500 2024] [mpm_event:notice] [pid 3523159:tid 140581598164096] AH00489: Apache/2.4.59 (Unix) mod_fcgid/2.3.9 configured -- resuming normal operations
[Tue Jul 16 12:27:28.308564 2024] [mpm_event:info] [pid 3523159:tid 140581598164096] AH00490: Server built: Jun 4 2024 16:17:18
[Tue Jul 16 12:27:28.308571 2024] [core:notice] [pid 3523159:tid 140581598164096] AH00094: Command line: '/usr/alwaysdata/apache/2.4.59/bin/apache -f /home/live-studi-sql/admin/config/apache/apache.conf -D FOREGROUND'
[Tue Jul 16 12:27:28.537440 2024] [core:error] [pid 3523162:tid 140581581555456] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:27:28.663975 2024] [core:error] [pid 3523162:tid 140581564770048] [client 90.27.205.205:0] 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 backtrace., referer: http://live-studi-sql.alwaysdata.net/index.php
[Tue Jul 16 12:37:06.760809 2024] [core:error] [pid 3523162:tid 140581547984640] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:38:49.636713 2024] [core:error] [pid 3523162:tid 140581057591040] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:38:50.410860 2024] [core:error] [pid 3523162:tid 140581040805632] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:38:51.107725 2024] [core:error] [pid 3523162:tid 140581024020224] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 12:39:00.184606 2024] [core:error] [pid 3523162:tid 140581007234816] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 13:09:21.031762 2024] [mpm_event:notice] [pid 3523159:tid 140581598164096] AH00491: caught SIGTERM, shutting down
[Tue Jul 16 13:09:21.043150 2024] [fcgid:info] [pid 3523161:tid 140581598164096] mod_fcgid: Process manager 3523161 stopped
AH00112: Warning: DocumentRoot [/home/live-studi-sql/www/] does not exist
[Tue Jul 16 16:30:30.183190 2024] [fcgid:info] [pid 4078040:tid 140145530279040] mod_fcgid: Process manager 4078040 started
[Tue Jul 16 16:30:30.185243 2024] [mpm_event:notice] [pid 4078038:tid 140145530279040] AH00489: Apache/2.4.59 (Unix) mod_fcgid/2.3.9 configured -- resuming normal operations
[Tue Jul 16 16:30:30.185308 2024] [mpm_event:info] [pid 4078038:tid 140145530279040] AH00490: Server built: Jun 4 2024 16:17:18
[Tue Jul 16 16:30:30.185316 2024] [core:notice] [pid 4078038:tid 140145530279040] AH00094: Command line: '/usr/alwaysdata/apache/2.4.59/bin/apache -f /home/live-studi-sql/admin/config/apache/apache.conf -D FOREGROUND'
[Tue Jul 16 16:30:30.410950 2024] [core:error] [pid 4078041:tid 140145513670400] [client 90.27.205.205:0] 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 backtrace.
[Tue Jul 16 16:30:30.549186 2024] [core:error] [pid 4078041:tid 140145496884992] [client 90.27.205.205:0] 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 backtrace., referer: http://live-studi-sql.alwaysdata.net/accueil
[Tue Jul 16 16:33:18.643006 2024] [core:error] [pid 4078041:tid 140145480099584] [client 90.27.205.205:0] 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 backtrace.

```

the processus log:

```auto
[16/Jul/2024:12:27:28 +0200] [upstream] Upstream started PID: 3523159
[16/Jul/2024:12:27:28 +0200] [upstream] [3523159] STDERR: AH00112: Warning: DocumentRoot [/home/live-studi-sql/www/] does not exist
[16/Jul/2024:13:09:21 +0200] [upstream] [3523159] SIGTERM sent to upstream
[16/Jul/2024:13:09:21 +0200] [upstream] [3523159] Upstream stopped (reason: idle)
[16/Jul/2024:16:30:30 +0200] [upstream] Upstream starting: /usr/alwaysdata/apache/2.4.59/bin/apache -f /home/live-studi-sql/admin/config/apache/apache.conf -D FOREGROUND (env: {'HOME': '/home/live-studi-sql', 'LANG': 'en_US.UTF-8', 'LC_ALL': 'en_US.UTF-8', 'PATH': '/home/live-studi-sql/.local/bin:/home/live-studi-sql/.local/share/gem/ruby/3.1.0/bin:/home/live-studi-sql/.gem/ruby/3.1.0/bin:/home/live-studi-sql/.composer/vendor/bin:/home/live-studi-sql/.npm-packages/bin:/usr/local/bin:/usr/bin:/bin', 'TMPDIR': '/home/live-studi-sql/admin/tmp', 'APACHE_ROOT': '/usr/alwaysdata/apache/2.4.59'}, cwd: /home/live-studi-sql/)
[16/Jul/2024:16:30:30 +0200] [upstream] Upstream started PID: 4078038
[16/Jul/2024:16:30:30 +0200] [upstream] [4078038] STDERR: AH00112: Warning: DocumentRoot [/home/live-studi-sql/www/] does not exist

```

the requêtes http:

```auto
live-studi-sql.alwaysdata.net 90.27.205.205 - - [16/Jul/2024:12:27:28 +0200] "GET /favicon.ico HTTP/1.1" 500 531 "http://live-studi-sql.alwaysdata.net/index.php" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
live-studi-sql.alwaysdata.net 90.27.205.205 - - [16/Jul/2024:12:37:06 +0200] "GET /index.php HTTP/1.1" 500 531 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
live-studi-sql.alwaysdata.net 90.27.205.205 - - [16/Jul/2024:12:38:49 +0200] "GET /index.php HTTP/1.1" 500 531 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
live-studi-sql.alwaysdata.net 90.27.205.205 - - [16/Jul/2024:12:38:50 +0200] "GET /index.php HTTP/1.1" 500 531 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
live-studi-sql.alwaysdata.net 90.27.205.205 - - [16/Jul/2024:12:38:51 +0200] "GET /index.php HTTP/1.1" 500 531 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
live-studi-sql.alwaysdata.net 90.27.205.205 - - [16/Jul/2024:12:39:00 +0200] "GET /accueil HTTP/1.1" 500 531 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
live-studi-sql.alwaysdata.net 90.27.205.205 - - [16/Jul/2024:16:30:30 +0200] "GET /accueil HTTP/1.1" 500 531 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
live-studi-sql.alwaysdata.net 90.27.205.205 - - [16/Jul/2024:16:30:30 +0200] "GET /favicon.ico HTTP/1.1" 500 531 "http://live-studi-sql.alwaysdata.net/accueil" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
live-studi-sql.alwaysdata.net 90.27.205.205 - - [16/Jul/2024:16:33:18 +0200] "GET / HTTP/1.1" 500 531 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"

```

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [July 16, 2024, 3:15pm UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/4 "2024-07-16T15:15:24Z")

</div>

There is a warning that the DocumentRoot does not exist. Try to check that.

> AH00112: Warning: DocumentRoot [/home/live-studi-sql/www/] does not exist

---

<div class="post-metadata">

**Author:** ![samclia](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@samclia](https://discourse.slimframework.com/u/samclia)\
**Post date:** [July 16, 2024, 8:26pm UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/5 "2024-07-16T20:26:17Z")

</div>

I use FileZilla to transfer my files. I have a problem with the transfer (71 failed transfers)

```xml
content deleted

```

here is my composer.json:

```json
{
    "autoload": {
        "psr-4": {
          "App\\": "src/"
        }
      },
        "require": {
        "slim/slim": "^4.13",
        "nyholm/psr7": "^1.8",
        "nyholm/psr7-server": "^1.1",
        "php-di/php-di": "^7.0",
        "php-di/invoker": "^2.0",
      "vlucas/phpdotenv": "^5.6",
      "monolog/monolog": "^3.5",
      "slim/php-view": "^3.2"
    }     
}

```

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [July 17, 2024, 6:09am UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/6 "2024-07-17T06:09:09Z")

</div>

You should not post sensitive data here. Check your server permissions etc.

---

<div class="post-metadata">

**Author:** ![samclia](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@samclia](https://discourse.slimframework.com/u/samclia)\
**Post date:** [July 17, 2024, 8:15am UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/7 "2024-07-17T08:15:00Z")

</div>

What are the sensitive data?

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [July 17, 2024, 8:31am UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/8 "2024-07-17T08:31:50Z")

</div>

For example the username and password of your server.

---

<div class="post-metadata">

**Author:** ![samclia](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@samclia](https://discourse.slimframework.com/u/samclia)\
**Post date:** [July 17, 2024, 10:44am UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/9 "2024-07-17T10:44:42Z")

</div>

Youps! I didn’t read enough of what I posted. Thanks. I  
will change the password

---

<div class="post-metadata">

**Author:** ![samclia](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@samclia](https://discourse.slimframework.com/u/samclia)\
**Post date:** [July 17, 2024, 1:45pm UTC](https://discourse.slimframework.com/t/request-exceeded-the-limit-of-10-internal-redirects/5945/10 "2024-07-17T13:45:55Z")

</div>

Two problems:

- I deleted the folder www, without paying attention.  
/  
|—admin  
|—www

- And for the transfer of the files/folders with FileZilla, I had to limit the number of simulated connections to 1.  

Thanks Odan.

Have a good day.
