Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Request exceeded the limit of 10 internal redirects due to probable configuration error (8 posts)

Started 1 year, 10 months ago by: Simon Culshaw

  • Profile picture of Simon Culshaw Simon Culshaw said 1 year, 10 months ago:

    Googling seems to indicate that I may have a loop in my .htaccess file, I’m a newbie and would appreciate it if anyone could spot any errors here:

    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]

    SecFilterEngine Off
    SecFilterScanPOST Off

  • Profile picture of r-a-y r-a-y said 1 year, 10 months ago:

    It could be a problem with your server. However, this most likely means you have a broken link on your site.
    Check your theme for broken images, stylesheets, etc.

    If you have access to the server error log, you can find out specifically which file is the culprit.

  • Profile picture of Simon Culshaw Simon Culshaw said 1 year, 10 months ago:

    Ray, Thank you for responding, I do have access to the server and got the error message from the error_log which I assume is the Apache error log.

    Please can you let me know if there is another more specific error log that I should look.

    Very grateful for your assistance

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 10 months ago:

    Hi Simon
    No, that’s about as specific (and mysterious) as you’re going to get. If you aren’t using the BP-Default theme (unedited), switch back to it. Does the problem go away?

    If it does, have a look at your actual theme’s functions.php, or post a link to it from pastebin.com

  • Profile picture of Simon Culshaw Simon Culshaw said 1 year, 10 months ago:

    Ray & Paul, Thank you very much for your time, I shall do some more digging and then post back my findings in case they are useful for someone else in the future.

  • Profile picture of msrecko msrecko said 1 year, 10 months ago:

    Hi, I was solve same problem on my server.

    Just put bellow code in you .htaccess (to stop looping)……

    RewriteCond %{ENV:REDIRECT_STATUS} 200
    RewriteRule .* – [L]

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 10 months ago:

    That’s not an awesome hack, it’d be better for us to understand the root problem.

  • Profile picture of adelay adelay said 1 year, 9 months ago:

    I’m getting the same error, but I’m noticing that its only showing up when I access any of the admin pages. It seems like anything inside /wp-admin/ is giving me one of these redirect errors. Any thoughts?