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

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

August 4, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Request exceeded the limit of 10 internal redirects due to probable configuration error

When facing a “Request exceeded the limit of 10 internal redirects” error on your Magento site after trying to remove index.php from the URL, it’s crucial to understand that this issue often stems from incorrect configuration in the .htaccess file or server settings. Here’s how you can effectively troubleshoot and resolve this problem.

Understanding the Error

The “Request exceeded the limit of 10 internal redirects” error occurs when your server encounters a loop of redirections, typically caused by conflicting rewrite rules or misconfigured base URLs. In your case, the Apache server is hitting its limit for internal redirects while trying to process requests for local.xml and other Magento files.

The relevant log lines indicate that:

  • The client was denied access to the local.xml file due to server configuration.
  • The request exceeded the redirect limit of 10, suggesting a misconfiguration in your rewrite rules.

Identifying the Cause

To pinpoint the exact cause of this issue, let’s analyze the provided .htaccess file and server environment:

  1. Base URL Configuration: Your Magento installation seems to have an incorrect base URL configured. The RewriteBase directive is commented out, which might lead to improper rewriting of URLs.

  2. File Permissions: Although you mentioned setting permissions correctly, double-check that all necessary files (like .htaccess) and folders have the appropriate read/write permissions for the web server user.

  3. Server Configuration: The error message about being denied access to local.xml suggests there might be a configuration issue with your Apache or Nginx setup that needs further investigation.

Steps to Resolve the Issue

To resolve this problem, follow these steps:

Step 1: Check and Update Your Base URL

Ensure that your base URL is correctly configured in the Magento admin panel (System > Configuration > General > Web). The base URL should match the actual domain name of your site.

Additionally, update the RewriteBase directive in your .htaccess file to reflect the correct base path relative to the web root:

# Change this line if necessary
RewriteBase /magento/

Step 2: Verify File Permissions

Double-check that all necessary files and folders have the appropriate permissions. Magento recommends setting the following permissions:

  • Files: 644 (read-write for the owner, read-only for others)
  • Folders: 755 (read-write-execute for the owner, read-execute for others)

You can use the chmod command to update permissions if needed.

Step 3: Enable Mod_Rewrite

Ensure that the mod_rewrite module is enabled in your Apache configuration. Check this by running:

apache2ctl -M | grep rewrite_module

If it’s not listed, enable it by editing the apache2.conf file and uncommenting the line containing LoadModule rewrite_module modules/mod_rewrite.so.

Step 4: Adjust Server Configuration

If you’re still facing issues after updating your .htaccess file, consider checking your server-specific configuration. For Apache, make sure there are no conflicting directives in your virtual host or main configuration files that could be causing the access denial to local.xml.

For Nginx users, double-check your server block configuration and ensure it’s properly set up for handling PHP and Magento requests.

Step 5: Reindex and Clear Cache

After making necessary changes, reindex your data (php bin/magento indexer:reindex) and clear all caches (admin panel under System > Tools > Cache Management).

A Word of Caution

When modifying configuration files like .htaccess and dealing with server settings, always make a backup of the original files before making any changes. This ensures you can easily revert if something goes wrong during the process.

Moreover, ensure that you have proper access to your server’s file system and administrative panels for making these modifications.

Conclusion

Resolving the “Request exceeded the limit of 10 internal redirects” error involves a systematic approach of checking and updating relevant configuration files, permissions, and settings. By following the steps outlined above and ensuring your base URL is correctly configured, you should be able to fix this issue and successfully remove index.php from your Magento URLs.

Remember that proper server administration and careful handling of sensitive files are essential for maintaining a stable and secure e-commerce environment. If you’re unsure about any aspect of the process or encounter persistent issues, consult with a professional developer or support service for further assistance.

Happy coding!

Security Configuration Errors CLI

Our network