The MU forums have moved to WordPress.org

mod_rewrite, LimitInternalRecursion, MaxRedirects, and my .htaccess, (6 posts)

  1. mzmartipants
    Member
    Posted 17 years ago #

    I was recently looking over my error logs and I keep seeing the two following errors repeatedly.
    ----------------------------
    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.
    -------------------------------------------
    mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
    -------------------------------------------

    Forgive my ignorance(please!). I know these are apache errors, and I THINK they have to do with my htaccess file. My .htaccess file is as follows:

    <Files ~ ".*..*">
    order allow,deny
    deny from all
    </Files>

    Can someone give me some kind of direction? I'm kinda over my head here. :) I don't have much else on my server besides MU, so I'm thinking it's an MU issue.

    Thanks.

  2. lunabyte
    Member
    Posted 17 years ago #

    If it's your server, edit apache's configuration file and up the number of allowed internal redirects. MU does a ton of them.

  3. quenting
    Member
    Posted 17 years ago #

    i don't think you should.
    I have plenty of these too.
    10 is way enough rewrites for MU i think. The problem is the rules are "bad". They assume the queried URLs are going to be the ones expected, but that's incorrect. Sometimes some robots query weird stuff because they mess up relative/absolute path (also happens sometimes when the user copy/pastes html from amother site in a post). There are ways to generate URLs in MU that will create infinite rewrite loops. I'll try to find one for you as an example. Uping the limit will probably just make your server run that many more loops before dumping the error.

  4. lunabyte
    Member
    Posted 17 years ago #

    Good point, but for some reason I was thinking that there was a couple in there that bounced around 12 or 15 times. Maybe not.

  5. drmike
    Member
    Posted 17 years ago #

    Wasn't this what happens when you do the install within a subdirectory and try to do subdomains?

  6. lunabyte
    Member
    Posted 17 years ago #

    I think that was one cause.

About this Topic

  • Started 17 years ago by mzmartipants
  • Latest reply from lunabyte