In reviewing my /var/log/apache2/error_log file, I am seeing tons of error messages related to MaxRedirects (~1.2 million in the last calendar month!):
I used the grep suggestion (grep -rni --include=".htaccess" "maxredirects" /home/) from another thread (MaxRedirects in error log), and a number of client accounts (but not all, about half of the accounts) come back with, /home/client/public_html/.htaccess:62: RewriteOptions MaxRedirects=10.
I used cPanel File Manager to check the clients .htaccess file, and sure enough lines 57-63 contain:
When I go to the clients cPanel > Domains > Redirects, there are no redirects configured for the account?
Is the problem with accounts which have this rule in their .htaccess, or the accounts which do not?
Code:
[Fri Dec 13 14:52:09.542523 2019] [rewrite:warn] [pid 9320] AH00664: RewriteOptions: MaxRedirects option has been removed in favor of the global LimitInternalRecursion directive and will be ignored.
I used cPanel File Manager to check the clients .htaccess file, and sure enough lines 57-63 contain:
Code:
################################################################################
### SETUP FOR THE REWRITE/REDIRECTS ###
################################################################################
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteOptions MaxRedirects=10
</IfModule>
Is the problem with accounts which have this rule in their .htaccess, or the accounts which do not?
Last edited: