• Hi,
    In my apache error log, a see a lot errors like the following:
    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., referer: https://example.com/es/

    I am using multisite, with subfolders sites in apache 2.4, and PHP 7.3
    My multisite code in htaccess file is the following:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress

    I find this thread about this error but with a different multisite code:
    https://stackoverflow.com/questions/22756796/apache-2-4-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable

    They suggest two probable solutions:
    1) Commenting 2 lines which in my case should be:

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

    or
    2)Changing the following line:
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    for this one:
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) - [L]

    QUESTION:
    Is this going to work? Is there any other solution?
    Has this solution further implications. Can I have other issues?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Irene

    (@arlinaite)

    Server is Apache + Nginx from Digital Ocean

    talk to the plugin developer slug /es/ , you need a second slug in this scenary the rewriterule is always false, the bug is on the server not in WordPress

    If you use multisite with su directory have https://yourdomain.com/user/ (user slug for secondary site) and https://yourdomain.com/ (for root folder /) this problem is for initial WordPress, root folder installaction.

    I have a similar problem, how did you get it fixed?

    Thread Starter Irene

    (@arlinaite)

    Hi,

    I didn’t solve it.

    I decided not to go further, because I asked for a solution in server support. The result is that they changed the wp multisite code for the single wp code, several times letting my live site down.

    This is not something that I can solve by my own, so I have to live with it. By now I see errors in logs and I don’t notice further errors. The problem is not in wp, the health check is ok.

    Good luck with this.

    Too bad, I changed the rule but that did crash the site indeed.
    I am having CPU problems but a lot of these logs so I hoped solving this would solve those.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Request exceeded the limit of 10 internal redirects’ is closed to new replies.