In short
Ahrefs flags "500 page" for internal URLs that return HTTP 500 Internal Server Error. Google treats 5xx errors as a sign the server is struggling and slows down crawling. If they persist, indexed URLs are eventually dropped. Common causes are a broken plugin or theme, a bad .htaccess rule, code errors, and PHP memory limits. Check the server error log, fix the cause, and recrawl.
A 500 error means something broke on the server while building the page. It's a generic message, so the real cause is in your error logs.
First, check if it's still happening
Open a few flagged URLs in a browser. If they load now, the error was temporary, perhaps during a deploy or a traffic spike. Recrawl to confirm. If the same URLs keep failing, it's a real bug.
Find the cause
On cPanel hosting, open cPanel > Metrics > Errors to see the latest error log entries, or check the error_log file in your site's folder. Look for the time Ahrefs crawled.
| Common cause | Fix |
|---|---|
| A plugin or theme update broke something | Roll back or deactivate it, then update again when fixed |
| Bad rule in .htaccess | Restore the last working .htaccess |
| PHP memory limit reached | Raise the limit, or fix the code using too much memory |
| Wrong PHP version for the code | Switch the PHP version in cPanel (MultiPHP Manager or Select PHP Version) |
| Code error on one template | Fix the bug; often a null value or missing field |
| Node.js app crashed | Check the app's logs and restart it |
Platform tips
WordPress: turn on debug logging by adding these lines to wp-config.php, then check wp-content/debug.log. Turn it off when done.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Shopify, Webflow and Wix: server errors on hosted platforms are usually short platform incidents. Check the platform's status page. If one page keeps failing on Shopify, a broken Liquid template or app section is the likely cause.
Custom builds: log every 500 with the route and error message, and handle missing data gracefully. A missing database field should show a 404 or a fallback, not crash the page.
Common mistakes
Showing an error page that returns 200. Keep real errors as 5xx, so search engines retry instead of indexing the error message.
Ignoring intermittent 500s. If they come back on every crawl, Google sees them too.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
Google Search Central, How HTTP status codes, and network and DNS errors affect Google Search
WordPress Developer Resources, Debugging in WordPress

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



