Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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

share|improve this answer
    
But when mod_rewrite fill decide to stop rule processing? Would the last rule be executed? –  Jevgeni Smirnov Feb 14 '13 at 11:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.