Infinite Loops – Request exceeded the limit of 10 internal redirects due to probable configuration error

Home Forums BulletProof Security Pro Infinite Loops – Request exceeded the limit of 10 internal redirects due to probable configuration error

This topic contains 0 replies, has 1 voice, and was last updated by  AITpro Admin 4 years, 3 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #13682

    AITpro Admin
    Keymaster

    You actually have redirect .htaccess code somewhere that has a mistake and there is a redirect loop occurring.  A redirect loop or infinite loop is exactly what is sounds like.  Something is redirecting to something that is redirecting again, etc etc etc………  If you have eliminated the 2 most common causes above for this problem then the easiest method of solving an infinite loop problem is to check your Server Logs for clues to what is looping/redirecting.  You can also Deactivate Root Folder BulletProof Mode, test if everything is ok and then check any Custom Code that you have added by individually checking that custom .htaccess code individually.  You can comment out all custom .htaccess code and then uncomment each block of code one by one to isolate the problem.

    This .htaccess code below can also be used in cases where the redirect status is 200, which means that the redirect is OK and is not generating a 403 or 500 error.  Your Server Logs log all HTTP Status codes for each Request to your website:  200, 301, 302, 403, 500, etc.

    # .htaccess Fix for Infinite Redirect Loop Errors if HTTP Status Code is: 200
    RewriteEngine On
    RewriteCond %{ENV:REDIRECT_STATUS} 200
    RewriteRule .* - [L]

    Other possible causes for infinite Redirect loop errors/problems:
    https://wordpress.org/support/topic/ah00124-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-1?replies=2#post-8807668

    Your WP Super Cache or W3TC or other caching plugin htaccess cache code needs to be copied to this BPS Root Custom Code text box: CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE.
    Click the Save Root Custom Code button.
    Go to the Security Modes page and click the Root Folder BulletProof Mode Activate button.

    If you have an HTTPS/SSL site then a very common problem is having mixed URL’s|URI’s in your Source Code. ie http and https internal URL’s|URI’s on the same page/same page Source Code, which causes an infinite redirect loop from http to https and vice versa. You will need to check that your WordPress Settings > General settings for WordPress Address (URL) and Site Address (URL) are correct and that you are using valid HTTPS/SSL htaccess rewrite/redirect code in your root htaccess file:  http://forum.ait-pro.com/forums/topic/wordpress-ssl-htaccess-code-rewrite-ssl-rewritecond-server_port/#post-7233

    Another possible problem could be that your host server does not allow using the htaccess ErrorDocument directive in htaccess files to redirect HTTP Status errors. To test if that is the cause of the problem do these steps:
    1. Turn Off BPS Security Logging.
    2. Go to this BPS Root Custom Code text box: CUSTOM CODE DENY ACCESS TO PROTECTED SERVER FILES AND FOLDERS
    3. Type a # sign into this text box.
    4. Click the Save Root Custom Code button.
    5. Go to the Security Modes page and click the Root Folder BulletProof Mode Activate button.

    Another possible problem could be that you have an htaccess file higher up in your folder/directory structure that is redirecting somewhere that is redirecting back on itself. You would need to check other htaccess files rewrite/redirect rules to see if that is the cause of the problem.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.