Request exceeded the limit of 10 internal redirects
-
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-probableThey 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]
- The topic ‘Request exceeded the limit of 10 internal redirects’ is closed to new replies.