WordPress 500 Internal Server Error: How to Fix
Fix the WordPress 500 internal server error in the order WordPress advises. Check .htaccess with our free checker, then memory, plugins, theme and core files.

Last updated December 1, 2026
Steps checked against official WordPress.org sources on December 1, 2026
A 500 Internal Server Error means the server hit a problem it could not handle. In WordPress, the handbook names a damaged .htaccess file as the most likely cause. Plugins, the theme, low memory and damaged core files come next.
This guide follows WordPress’s own order of fixes. It also covers servers that do not use .htaccess at all.
Key Takeaways
- A 500 error is a generic “catch-all” server error. The real cause is in your server or debug log.
- Rename .htaccess first, then save your permalinks to make a fresh one.
- Servers running Nginx have no .htaccess file. Skip that step and ask your host about the server config.
- Next, test plugins, the theme and the memory limit.
- Log errors to a file. WordPress says debug tools are not meant for live sites.
What Does a 500 Internal Server Error Mean?
MDN, the web reference, calls 500 a generic “catch-all” error. The server hit an unexpected condition and has no more specific error code to send. So the message itself does not tell you the cause.
In WordPress, the handbook lists five things to try. The table shows them in its order.
| Step | What WordPress says | Needs file access? |
|---|---|---|
| 1. .htaccess | A damaged .htaccess file is the most likely issue | Yes |
| 2. Memory | Increase the PHP memory limit | Yes |
| 3. Plugins | Deactivate all plugins to test them | Only if wp-admin is down |
| 4. Core files | Re-upload wp-admin and wp-includes from a fresh copy | Yes |
| 5. Theme | Switch to a default WordPress theme | Only if wp-admin is down |
Source: WordPress common errors handbook, Internal Server Error section, updated October 14, 2026.
Does a 500 Error Mean the Site Is Down?
For the pages that show it, yes. Visitors cannot load them until the cause is fixed. Sometimes only wp-admin or one page fails, while the rest of the site works.
First, rule out a one-time glitch. Reload the page after a minute and try another browser. If the error stays, work through the steps below. If your whole hosting account is down, your host’s status page or support team can confirm it.
Write down when the error started and what changed just before. That detail often points straight to the cause.
How Do You Fix a Damaged .htaccess File?
WordPress says a damaged .htaccess file is the most likely cause. The file sits in your site’s root folder. Some file managers hide it, so you may need to turn on hidden files.
- Open your host’s file manager or connect with FTP.
- Find .htaccess in the root folder, next to wp-config.php.
- Rename it to .htaccess_old.
- Reload your site. If it works, the file was the cause.
- Log in and go to Settings, then Permalinks.
- Click Save Changes. WordPress writes a fresh .htaccess file.
Before you delete the old file, paste it into the checker below. It flags common problems, like a broken block or duplicate markers.
.htaccess checker
Paste the contents of your .htaccess file. It stays in your browser. Nothing is sent anywhere.
Digieh tool. It flags common problems only. Renaming the file is still the surest test.
What Should a Default WordPress .htaccess Look Like?
The WordPress handbook shows this basic block for a single site. WordPress uses it for pretty permalinks.
# BEGIN WordPress
<IfModule mod_rewrite.c>
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]
</IfModule>
# END WordPressSource: WordPress Apache web server handbook page, read December 1, 2026.
Plugins such as cache or security tools may add their own blocks above or below this one. Leave those in place unless you are testing them.
php_value lines to .htaccess. The PHP manual describes these for PHP running as an Apache module. If your host runs PHP another way, remove them as a test.What If Your Server Uses Nginx?
Then there is no .htaccess file to fix. The WordPress handbook says Nginx has no directory-level config file like Apache’s .htaccess. All configuration happens at the server level.
If your host uses Nginx, skip the .htaccess step. Move on to plugins and memory, and ask your host to check the server config and error log.
Can Low Memory Cause a 500 Error?
Yes. WordPress lists raising the PHP memory limit as its second step. By default, WordPress tries to raise memory to 40MB on single sites and 64MB on multisite.
Add this line to wp-config.php above the “stop editing” line:
define( 'WP_MEMORY_LIMIT', '64M' );Some hosts block this change. The wp-config.php handbook says to ask your host to raise the limit in that case.
Free updates
Join the Digieh list
Be the first to know when our weekly brief launches.
No spam. Unsubscribe anytime. Read our Privacy Policy.
How Do You Test Plugins and the Theme?
If wp-admin works, deactivate all plugins, then reactivate them one at a time. If wp-admin is down, rename wp-content/plugins to plugins_old. If the site loads, a plugin was the cause.
For the theme, switch to a default WordPress theme. Without wp-admin, rename your active theme’s folder in wp-content/themes.
What fixed your 500 error?
- A fresh .htaccess file
- Turning off a plugin
- More memory
- Not sure
How Do You Find the Real Error?
Because 500 is a catch-all, the log holds the real cause. Check your host’s error log first. Many control panels show it under a logs or metrics section.
You can also log WordPress errors to a file. Add these lines to wp-config.php:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );This writes errors to wp-content/debug.log without showing them to visitors. Our critical error guide has a free debug log reader that names the plugin or theme for you.
WP_DEBUG back to false once the site works.How Do You Re-upload WordPress Core Files?
WordPress suggests re-uploading the wp-admin and wp-includes folders from a fresh install. This replaces damaged core files without touching your content.
- Download WordPress from wordpress.org.
- Unzip it on your computer.
- Upload the new wp-admin and wp-includes folders over the old ones.
- Do not upload wp-content or replace wp-config.php.
Did the error start during an update, with a “Briefly unavailable for scheduled maintenance” message? Our maintenance mode guide explains the .maintenance file.
Why Do Only Some Pages Show a 500 Error?
If only wp-admin or one page fails, the cause can be code that runs only there. A plugin with admin screens is one example. Test plugins first in that case.
If the error appears only when you upload or publish, check the memory limit and the debug log. Your host can also check for limits on the server.
Repeated server errors also make Google crawl your site less. Our guide to discovered – currently not indexed explains how that slows down new pages.
How Can You Prevent 500 Errors?
- Back up .htaccess and wp-config.php before you edit them.
- Update plugins one at a time.
- Test big changes on a staging copy.
- Do not paste code into .htaccess unless you know your server supports it.
- Keep your PHP version current, with your host’s help.
Other WordPress errors in this series: white screen of death, critical error and database connection error.
Homepage loads but posts show 404 after an .htaccess fix? See our WordPress 404 error on posts and pages guide.
Hit a file size limit while uploading a theme? Our upload max filesize fixes show safe values.
Seeing 403 Forbidden instead of a 500 error? Check permissions with our WordPress 403 Forbidden guide.
Seeing 502 Bad Gateway instead of 500? Our WordPress 502 Bad Gateway guide shows which server failed.
Seeing these errors in Google Search Console too? Our guide to server error 5xx in Search Console shows how to read Crawl Stats and your server log.
Test Yourself
What does WordPress call the most likely cause of a 500 error?
- A slow internet connection
- A damaged .htaccess file
- Too many posts
The WordPress handbook names a corrupted .htaccess file as the most likely issue.
Your host uses Nginx. Where is the .htaccess file?
- In wp-content
- In wp-admin
- There is none
WordPress says Nginx has no directory-level config file like .htaccess.
Frequently Asked Questions
Is a 500 error my fault or my host’s?
It can be either. A plugin, theme or .htaccess change on your side can cause it. So can a server problem. The error log shows which.
Will saving permalinks delete my custom .htaccess rules?
WordPress changes its own block between the # BEGIN WordPress and # END WordPress lines. Keep a copy of any other rules you added, just in case.
Does a 500 error hurt search rankings?
Visitors and search bots cannot load your pages while it lasts. Fix it as quickly as you can.
Should I leave debug mode on?
No. WordPress says debug tools are for testing and staging. Turn WP_DEBUG off once your site works.
Conclusion
A WordPress 500 error is a catch-all server error. Rename .htaccess first, unless your server runs Nginx. Then raise memory, test plugins and the theme, and re-upload core files. The error log shows the real cause.
Editor’s Note
This guide is accurate as of December 1, 2026. We checked the WordPress developer handbook, MDN and the PHP manual on that date. Hosting panels differ, so your host’s steps may look different.
Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.
Keep exploring
Your next read is waiting
1Home & KitchenWhirlpool Dryer Error Codes: Meanings and Quick Fixes8 min read
2AI & TechEthernet Unidentified Network in Windows 11: Fix Guide7 min read
3Visas & PassportsSchengen Visa Photo Size: 35×45 mm Rules Checked7 min read
4AI & TechWordPress Upload Max Filesize Error: Fix It Fast7 min read
5AI & TechWordPress 404 Error on Posts and Pages: Fix7 min read
6Home & KitchenSamsung Dishwasher Error Codes: Meanings and Quick Fixes8 min readFound this useful?












