Guides › HTML / PHP sites › Site down or error screens

Apache Error: Request Exceeded the Limit of 10 Internal Redirects

Rewrite loop.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Site down or error page

The error AH00124, request exceeded the limit of 10 internal redirects, means a rewrite rule sends a request in a circle. Apache stops after 10 loops and shows a 500 error.

1Find the loop in the log2Rename `.htaccess`3Check the rewrite rules4Add the standard conditions5Check HTTPS and www rules6Check the site address in WordPress7Rebuild the default fileFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Find the loop in the log

Illustration for Step 1: Find the loop in the log

The error log shows the URL that looped. Note it.

Step 2: Rename .htaccess

Rename it to .htaccess-old. If the error stops, a rule inside is the cause.

Step 3: Check the rewrite rules

Illustration for Step 3: Check the rewrite rules

Look for a RewriteRule that points to a path matching its own pattern, for example RewriteRule ^(.*)$ /index.php [L] without a condition for existing files.

Step 4: Add the standard conditions

Illustration for Step 4: Add the standard conditions

Before catch-all rules add RewriteCond %{REQUEST_FILENAME} !-f and RewriteCond %{REQUEST_FILENAME} !-d.

Step 5: Check HTTPS and www rules

Illustration for Step 5: Check HTTPS and www rules

Two rules that force www and non-www, or HTTP and HTTPS, can fight each other. Keep only one set.

Step 6: Check the site address in WordPress

Illustration for Step 6: Check the site address in WordPress

In Settings, General, the WordPress Address and Site Address must match the version you force. If your site is behind Cloudflare, set SSL to Full, not Flexible.

Step 7: Rebuild the default file

Illustration for Step 7: Rebuild the default file

In WordPress go to Settings, Permalinks and Save to regenerate .htaccess.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.