request exceeded the limit of 10 internal redirects due to probable configuration error code example

Example 1: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary

Inside /etc/apache2/apache2.conf Replace

 Options Indexes FollowSymLinks AllowOverride None Require all granted
to
 Options Indexes FollowSymLinks AllowOverride All Require all granted

and

 AllowOverride None Require all granted
to
 AllowOverride All Require all granted

Run these commands

sudo a2enmod rewrite
sudo service apache2 restart

Inside your .htaccess file

DirectoryIndex index.php


    
        Options -MultiViews
    

    RewriteEngine On

    RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
    RewriteRule ^(.*) - [E=BASE:%1]

    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule .? - [L]

    RewriteRule .? %{ENV:BASE}/index.php [L]

Example 2: request exceeded the limit of 10 internal redirects due to probable configuration error

# BEGIN WordPressRewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]# END WordPress

Example 3: request exceeded the limit of 10 internal redirects due to probable configuration error

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

Tags:

Misc Example