GoWilkes

Well-Known Member
Sep 26, 2006
692
33
178
cPanel Access Level
Root Administrator
I have a ton of these in my error log (seriously, 1,017 in the last 24 hours):

Code:
[Fri Nov 08 20:27:32.252163 2019] [rewrite:warn] [pid 23682] AH00664: RewriteOptions: MaxRedirects option has been removed in favor of the global LimitInternalRecursion directive and will be ignored.
But how can I find where MaxRedirects is still set? The error doesn't give me any clues... no path, no IP that I can trace down, nothing.

I don't find it in httpd.conf or under WHM > Service Configuration > Apache Configuration > Global Configuration. I'm using WHM v78.0.41 because I'm not ready to update MySQL, and I'm going to have to move to a new server in the near future to update from CentOS 6 to CentOS 7.

I have a ton of clients created, though, so it could potentially be in someone's .htaccess.
 

GoWilkes

Well-Known Member
Sep 26, 2006
692
33
178
cPanel Access Level
Root Administrator
Any suggestions on a way to track down which one(s)? I have 93 accounts under /home/, and there could be an .htaccess under any of their subdirectories.

I'm guessing that I could use grep, something like this:

Code:
grep -rni --include=".htaccess" "maxredirects" /home/
I don't do a lot of command line coding, though, so I'm not super comfortable with it. I'm also concerned with it slowing down the server and making higher traffic sites non-responsive while waiting on it to complete.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
That grep would work, though if you h ave a lot of accounts its most likely going to take some time. You could specify a group of accounts at a time - like /home/a*