Title: wp-login.php code replaced by error 404 html code
Last modified: July 29, 2025

---

# wp-login.php code replaced by error 404 html code

 *  [pixelsing](https://wordpress.org/support/users/pixelsing/)
 * (@pixelsing)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/wp-login-php-code-replaced-by-error-404-html-code/)
 * Hi,
   Last night, on several wordpress websites, all extensions have been disabled
   and the php code of wp-login.php was replaced by :<!DOCTYPE HTML PUBLIC “-//IETF//
   DTD HTML 2.0//EN”><html><head><title>404 Not Found</title></head><body><h1>Not
   found</h1><p>The requested URL was not found on this server.</p><hr><address>
   Apache/2.4.52 (Ubuntu) Server at XXX.XXX.231.163 Port 80</address></body></html
   >
 * 
   Does somebody else have this problem ? An idea

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/wp-login-php-code-replaced-by-error-404-html-code/#post-18575797)
 * There could be several reasons for this:
    - The domain now points somewhere else. Talk to your host’s support team about
      this. They should be able to tell you where the domain points to and why this
      may have changed.
    - Your website has been hacked. You can check this using an external tool such
      as [https://sitecheck.sucuri.net](https://sitecheck.sucuri.net). If it turns
      out that it has been hacked, take a look at this article: [https://wordpress.org/documentation/article/faq-my-site-was-hacked/](https://wordpress.org/documentation/article/faq-my-site-was-hacked/)
 * You can also log in to your hosting via FTP and see what files are there. Your
   host’s support team can also tell you how to connect via FTP.
 *  Thread Starter [pixelsing](https://wordpress.org/support/users/pixelsing/)
 * (@pixelsing)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/wp-login-php-code-replaced-by-error-404-html-code/#post-18575930)
 * I am the “host’s support team” 😉
 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/wp-login-php-code-replaced-by-error-404-html-code/#post-18576069)
 * > I am the “host’s support team” 😉
 * In that case, you need to do everything mentioned above.
 * If you don’t have that kind of skill, hire someone who does: [https://jobs.wordpress.net/](https://jobs.wordpress.net/)

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

The topic ‘wp-login.php code replaced by error 404 html code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [George Appiah](https://wordpress.org/support/users/gappiah/)
 * Last activity: [8 months, 2 weeks ago](https://wordpress.org/support/topic/wp-login-php-code-replaced-by-error-404-html-code/#post-18576069)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
