ronaldst

Well-Known Member
Feb 22, 2016
85
16
8
Norway
cPanel Access Level
Root Administrator
On one account I am getting Internal Server Error on 2 (of 5) subdomains. My Apache error log shows the following:
Code:
[Sun Apr 23 04:19:17.841427 2017] [core:error] [pid 29822] [client 12.12.123.123:57197] AH00124: 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., referer: url.com: Search lyrics
Can anyone explain to me what is causing this and what the solution might be?
 
Last edited by a moderator:

ronaldst

Well-Known Member
Feb 22, 2016
85
16
8
Norway
cPanel Access Level
Root Administrator
No these sub domains does not contain Wordpress sites. One subdomain has a simple HTML only site, and the other subdomain is empty. I tried to make a new subdomain for testing and it gives the Internal Server Error straight away.

You are onto something though, there is something odd with the .htaccess. The subdomains (giving the error) have none, but the main domain/site does. It runs a url shortening service.

I've managed to sort it out by making a .htaccess file in my subdomain directory.
 
Last edited:

24x7server

Well-Known Member
Apr 17, 2013
1,911
97
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

Check the .htaccess file outside the public_html directory also if it is present, what is the content in it.

Also, for testing, please add in the below code in the .htaccess and see what it gives to you.
RewriteCond %{ENV:REDIRECT_STATUS} 200
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
I've managed to sort it out by making a .htaccess file in my subdomain directory.
Hello,

That's typically the best way to address the issue, as it ensures the subdomain uses the .htaccess file in it's own document root.

Thank you.