Articles in this section

Website fails to load due to internal redirects: 500 Internal Server Error

Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • The website fails to load with error:

    PLESK_INFO: Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, info@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.

  • /var/www/vhosts/system/example.com/logs/error_log contains the following:

    CONFIG_TEXT: [error] [client 203.0.113.2] 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://example.com/

    OR

    CONFIG_TEXT: [core:alert] [pid 18159] [client 203.0.113.2:38306] /var/www/vhosts/example.com/httpdocs/.htaccess: without matching section

    OR

    CONFIG_TEXT: [core:alert] /var/www/vhosts/example.com/httpdocs/.htaccess: Invalid command 'alllow', perhaps misspelled or defined by a module not included in the server configuration Apache error

    OR

    CONFIG_TEXT: [proxy_fcgi:error] [pid 6378:tid 140153632777984] [client 203.0.113.2:57368] malformed header from script 'index.php': Bad header

Cause

Incorrect rewrite rules in .htaccess file causing constant redirecting.

Resolution

  1. Log into Plesk;
  2. Navigate to Domains > example.com > File Manager;
  3. Rename the .htaccess:
    htaccess.PNG

    or replace .htaccess content with default one by slelcting Edit... option on the above sceen:

    CONFIG_TEXT: # BEGIN WordPress
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

Note: If .htaccess file is not present on any level of httpdocs directory, consider checking subscription directory, e.g. /var/www/vhosts/example.com

Was this article helpful?

Comments

1 comment
Date Votes

Please sign in to leave a comment.