How to Fix Internal Server Error in WordPress Website


What Causes Internal Server Error

The internal server error is the most commonly seen error on a WordPress website. However, it is not limited to WordPress. There are many possible reasons for a internal server error on WordPress website. We have listed few of them below:

  • Updates in .htaccess file gone wrong
  • Coding error in active plugin
  • Coding error in WordPress core files.

How can I fix this?

If you ever receive the internal server error message, don’t panic. You can fix it by yourself. Now let us discuss the possible solutions to fix internal server error in WordPress website.

Upload default .htaccess file

In case if you had updated/deleted .htaccess file in the root directory of your website, then these changes might have caused the internal server error. You can easily fix this by uploading default .htaccess file or by adding the following code in .htaccess file of your hosting.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

Deactivate All Plugins

There is a chance that your recent changes in any plugin might have gone wrong. Which resulted in internal server error. To fix this issue, you need to identify the problematic plugin and disable it.

If you are able to login to WordPress Dashboard, go to plugins section and deactivate all the plugins. If the website works fine, then you could enable plugins one by one to locate the problematic plugin.

In case if you are unable to login to WordPress Dashboard, you need to disable plugins in Hosting File Manager.  In File Manager, try disabling all the plugins and check if your website works fine. Then you could enable each plugin one by one to locate the exact plugin which is causing the issue.

Upload WordPress Core files

Almost 90% of the internal server error issues will be fixed by following anyone of the above fixes. In case, if you are website is still showing internal server error, it is possible that there might be something wrong with your websites core files.

You can fix it by re-uploading wp-admin and wp-includes folders of WordPress installation copy. You can download the WordPress installation from here. Make sure to download the same version of that your website is currently using.