• So, I get an error: H00124: 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.

    I am on rhel 7.9, wordpress is fully updated. I do use wordfence for security. I don’t know a ton about apache, enough for changes, ect. However, I don’t think this is apache. As I have other WP sites running on the same server, and they do not have this error. So, my guess is it’s the .htaccess file. Can someone look and see if they notice something screwy? Thanks!

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$ 
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    #RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ - [L]
    RewriteRule . index.php [L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
    
    # Wordfence WAF
    <IfModule mod_php5.c>
    	php_value auto_prepend_file '/var/www/html/blog/wordfence-waf.php'
    </IfModule>
    <IfModule mod_php7.c>
    	php_value auto_prepend_file '/var/www/html/blog/wordfence-waf.php'
    </IfModule>
    <IfModule mod_php.c>
    	php_value auto_prepend_file '/var/www/html/blog/wordfence-waf.php'
    </IfModule>
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Helo @schwende

    I think the issue lies in the two rules that handle the trailing slash for the /wp-admin URL.
    Here’s an edited version of the two rules ( I haven’t tested this, so try at your own risk )

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^/wp-admin$ [NC]
    RewriteRule ^(.+)$ $1/ [R=301,L]
    Thread Starter schwende

    (@schwende)

    Thanks for the suggestion. I tried the edit. It didn’t make anything worse, but it didn’t change anything.

    I also tried changing that section to this:

    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    Same results. Nothing broke, but didn’t help.

    I also tried to take out ?wp-admin$, from the above code. Same thing. So, I’ll just have to play with it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.