Title: Error 500 &#8211; Internal Server Error &#8211; WP Admin Login
Last modified: November 13, 2025

---

# Error 500 – Internal Server Error – WP Admin Login

 *  [naninfa0](https://wordpress.org/support/users/naninfa0/)
 * (@naninfa0)
 * [5 months ago](https://wordpress.org/support/topic/error-500-internal-server-error-wp-admin-login/)
 * After migrating our WordPress site to a new server, the front-end loads fine,
   but both /wp-login.php and /wp-admin return this error:
 * **_The requested URL was rejected. Please consult with your administrator.
   Error
   500 – Internal Server Error
   _
 * **What I’ve Tried**:
    - Enabled `WP_DEBUG`, `WP_DEBUG_LOG`, and `WP_DEBUG_DISPLAY` → No errors shown
      or logged.
    - Recreated a fresh `.htaccess` file → No change.
    - Disabled the “WP Hide Login” plugin and accessed `/wp-login.php` directly 
      → Same issue.
    - Checked site-specific error logs → No related errors recorded.
 * Would appreciate any suggestions on where else to check or how to trace what’s
   causing this block. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [misteralex844](https://wordpress.org/support/users/misteralex844/)
 * (@misteralex844)
 * [5 months ago](https://wordpress.org/support/topic/error-500-internal-server-error-wp-admin-login/#post-18717494)
 * That usually happens when the new server’s security settings or web application
   firewall (like ModSecurity) are blocking admin URLs rather than WordPress itself
   being broken. Try temporarily disabling ModSecurity or asking your hosting provider
   to whitelist `/wp-admin` and `/wp-login.php`. Also check if the server’s SELinux
   rules or reverse proxy configurations are filtering POST requests. If you have
   a CDN or web firewall (like Cloudflare), pause it briefly to test. Once you confirm
   access works, re-enable protection with custom rules that allow WordPress login
   traffic.
 *  Thread Starter [naninfa0](https://wordpress.org/support/users/naninfa0/)
 * (@naninfa0)
 * [5 months ago](https://wordpress.org/support/topic/error-500-internal-server-error-wp-admin-login/#post-18717532)
 * [@misteralex844](https://wordpress.org/support/users/misteralex844/) Thanks for
   the suggestion. So far we have Wordfence Security for the web app firewall and
   yes we do also have Cloudflare. Will try to check if this is the cause 
   If you
   can explain more how to implement this: _Also check if the server’s SELinux rules
   or reverse proxy configurations are filtering POST requests._

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-500-internal-server-error-wp-admin-login%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

## Tags

 * [error 500](https://wordpress.org/support/topic-tag/error-500/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [naninfa0](https://wordpress.org/support/users/naninfa0/)
 * Last activity: [5 months ago](https://wordpress.org/support/topic/error-500-internal-server-error-wp-admin-login/#post-18717532)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
