Internal Server Error - AH00124: 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

Internal Server Error “AH00124: Request exceeded the limit of 10 internal redirects” on Apache

Last updated on

I was getting a 500 Internal Server error when trying to load some assets from my WordPress themes folder.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.29 (Ubuntu) Server at devanswers.co Port 443

Checking the Apache error log with:

sudo tail /var/log/apache2/error.log -n 200

Returned this error:

/var/log/apache2/error.log
[core:error] [pid 10384] [client 192.168.3.123:7143] AH00124: 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.

Check .htaccess

The problem for me was a RewriteRule in .htaccess.

Below is the recommended .htaccess file for WordPress Multisite, but it appears to cause some issues on my server.

.htaccess
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

The problem for me was due to the RewriteRule in red.

Simply replace $1 with - and reupload your .htaccess file.

.htaccess
RewriteRule ^(wp-(content|admin|includes).*) - [L]

If this doesn’t work, try commenting out the entire line by putting a # sign before it.

Hope this helps!

1 Star2 Stars3 Stars4 Stars5 Stars 5.00 (1 votes)

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

p.s. I increased my AdSense revenue by 68% using AI 🤖. Read my Ezoic review to find out how.

Leave a Reply

avatar
  Subscribe  
Notify of