0

I have following problem:

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 apache tries to reach non-existing files.

This is my .htaccess:

RewriteEngine  on

Options +FollowSymlinks    

RewriteCond %{HTTP_HOST} ^(www.)?domain.com$   

RewriteCond %{REQUEST_URI} !^/subfolder/$   

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /subfolder/$1   

RewriteRule ^\??$ index.php [L]

I'v turned on logs and in logs there was like:

/nonexistingfile -> /subfolder/nonexistingfile
/subfolder/nonexistingfile -> subfodler/subfolder/nonexistingfile 
/subfodler/subfolder/nonexistingfile -> subfodler/subfodler/subfolder/nonexistingfile

And like this 10 times.

Jevgeni Smirnov
  • 492
  • 1
  • 6
  • 22

1 Answers1

1

Add [L] to the line where you rewrite to subfolder.

Jenny D
  • 27,358
  • 21
  • 74
  • 110