Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.4.3.25. Request exceeded the limit of X internal redirects
When the text "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request" appears on the site, an error may be found in the site error logs:
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.
The issue arises due to the presence of a combination of directives in the .htaccess file, which create an infinite redirect even before the request is passed to the site's scripts. To resolve the issue, you need to edit the .htaccess file and revise the rules specified in it. In particular, it is important to check the set redirect flags:
[L]— flag to stop the execution of subsequent directives when executing the current one.[R=XXX]— flag for sending the specified response code instead ofXXX. When this flag is set, an infinite redirect can be seen in the browser, and the affected URLs can be reviewed.[C]— flag for chaining with subsequent rules. Often leads to infinite redirects.
To configure redirects, you can refer to the article on working with regular expressions and use ready-made redirect examples.