Solved

Error_Log: maximum number of internal redirects reached

Posted on 2007-11-15
5
509 Views
Last Modified: 2012-06-21
In my error_log i keep getting the error message:
mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if necessary.

Does anyone know what will cause this? It seems to take the site down briefly, how can i get more information on what is causing this error?
0
Comment
Question by:alex_wareing
  • 3
  • 2
5 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 20288733
Are you using rewrites?  This typically indicates that you have a bad rewrite statement and you are processing the same request multiple times (loop) more that "x" times (I think 10 is the default).
0
 

Author Comment

by:alex_wareing
ID: 20288814
Yes i am using rewrites. I have uploaded a copy of my .htaccess here:
http://dropbox.aiwmedia.com/htaccess.txt

I had a look and i couldn't see anything wrong, however i am no expert and i didn't write the rewrite rules.
0
 

Author Comment

by:alex_wareing
ID: 20307492
What technique could i use to trap the error? Is there any way to find out the referring URL as its not listed in the error log.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 20307621
I am not sure, that set of rewrites is more complex than I am used to looking at.  Generally I only use a one or two, maybe up to 4 simple conditions.  I'm not sure I understand it enough to figure it out.

I will have to check, there is a way to get this into the logs, but I can't remember off hand.
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 20308993
O.K.,  there is a rewritelog directive:

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#RewriteLog

This will put the rewrite stuff into a log.  There is also a rewriteloglevel, you should read about turning on rewrite logging, as it will SLOW your server down.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Server specifications for web hosting 7 93
Problem with .htaccess file 4 71
PHP in Apache server 20 101
Apache Issues 9 86
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question