Forum Moderators: phranque

Message Too Old, No Replies

Maximum number of internal redirects reached

Recurring error in log file

         

bogdan0123

4:16 pm on Jun 11, 2007 (gmt 0)

10+ Year Member




System: The following 2 messages were cut out of thread at: http://www.webmasterworld.com/apache/3363253.htm [webmasterworld.com] by jdmorgan - 9:16 pm on June 11, 2007 (CDT -5)


I just looked at my apache error log and there are lots of lines with this error: mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.

I have two mambo installations on a server. The first is on / and the second on a subdomain.

The mambo .htaccess:

RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^(.*) index.php

I also have .htaccess in /images and /mambo2/images folders for hotlinking:

Options All -Indexes

RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?somesite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!google\. [NC]
RewriteCond %{HTTP_REFERER}!search\?q=cache [NC]
RewriteRule \.(mp3如ng妃pg妃peg夸pg夙if存wf存is地iff安av屹ip宇ar夙z夙zip)$ logo.jpg [L]

Any help would be appreciated.
Thank you.

jdMorgan

2:15 am on Jun 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your last rule:

RewriteRule \.(mp3如ng妃pg妃peg夸pg夙if存wf存is地iff安av屹ip宇ar夙z夙zip)$ logo.jpg [L]

obviously rewrites "logo.jpg" to itself, resulting in a loop.

Add a RewriteCond ahead of this rule to exclude requests for logo.jpg from being rewritten:


RewriteCond %{REQUEST_URI} !/logo\.jpg$

Jim