WordPress multisite 500 internal server error

I tried all possible ways but not succeeded to solve the error. I have installed WordPress Multisite, everything works fine with primary site but for all subdomains I gets error 500 Internal server.

Apache logs shows :

[Sat Aug 18 19:11:06.757708 2018] [core:error] [pid 9413] [client x.x.x.x:49556] 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: http://aoa.domain.in/wp-admin/

I tried 2 .htaccess codes :
1st one gives 500 Internal server error.

2nd one gives Not Found
The requested URL /wp-admin/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

below is the .htaccess code

1st one :

BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]

add a trailing slash to /wp-admin

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

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]

RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(..php)$ $1 [L]
RewriteRule . index.php [L]

# END WordPress

2nd one :

BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]

uploaded files

RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

add a trailing slash to /wp-admin

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

RewriteCond %{ENV:REDIRECT_STATUS} 200 [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)(wp-(content|admin|includes).) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)(..php)$ $2 [L]
RewriteRule . index.php [L]

# END WordPress

mod_rewrite is enabled on the server :

[root@server1 public_html]# /usr/local/apache/bin/httpd -D DUMP_MODULES | grep rewrite
rewrite_module (shared)

Kindly assist. I have disabled all plugins and the error is still there.

Read more here:: WordPress multisite 500 internal server error

Leave a Reply

Your email address will not be published. Required fields are marked *