Title: Auto redirection for /wp-login.php
Last modified: August 21, 2016

---

# Auto redirection for /wp-login.php

 *  Resolved [wpweaver](https://wordpress.org/support/users/wpweaver/)
 * (@wpweaver)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/auto-redirection-for-wp-loginphp/)
 * Just a big +1 for this feature request:
 * Instead of generating a 404 when someone enters
 * [http://example.com/wp-login.php](http://example.com/wp-login.php)
 * it would absolutely wonderful if there were a simple option to enter a redirection
   address – either to a wp page on the site, or better yet, a plain html page.
 * I’m using the “Redirection” plugin to achieve this now, but that seems overkill.
   One of the BIG advantages of this plugin is to block all the hack attacks, and
   it would be very nice if all they got was a plain html page that puts minimal
   load on the server – no need to load WP or send all the graphics from the standard
   404 page.
 * Actually, even generating a similar, simple message like you get when trying 
   example.com/wp-admin would be perfect.
 * [https://wordpress.org/plugins/rename-wp-login/](https://wordpress.org/plugins/rename-wp-login/)

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

 *  [elstellino](https://wordpress.org/support/users/elstellino/)
 * (@elstellino)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/auto-redirection-for-wp-loginphp/#post-4795817)
 * I agree, i just downloaded and installed it after a brute force attack that exceeded
   my bandwidth, wouldn’t want to experiment the same just redirecting to 404…
    
   Good call the one of the “redirection” plugin, wpweaver, thanks. Maybe overkill,
   but if it works I will do it.
 *  [elstellino](https://wordpress.org/support/users/elstellino/)
 * (@elstellino)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/auto-redirection-for-wp-loginphp/#post-4795818)
 * Well, it doesn’t.
 *  Plugin Author [Ella Van Durpe](https://wordpress.org/support/users/ellatrix/)
 * (@ellatrix)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/auto-redirection-for-wp-loginphp/#post-4795978)
 * If you want minimal impact on the server, you should block wp-login.php with 
   htaccess. Then the server doesn’t even start loading the PHP files. I might add
   this option in a future version.
 *  [elstellino](https://wordpress.org/support/users/elstellino/)
 * (@elstellino)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/auto-redirection-for-wp-loginphp/#post-4795979)
 * Thanks Janneke, I eventually did exactly that because the attacks became unbearable.
 *  [flapane](https://wordpress.org/support/users/flapane/)
 * (@flapane)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/auto-redirection-for-wp-loginphp/#post-4795980)
 * Just in case somebody needs the code…
    I’ve put it in my root’s .htaccess, because
   there were a lot of malicious requestes not only inside the blog folder, but 
   inside root folder too.
 *     ```
       <Files "wp-login.php">
            Order allow,deny
            Deny from all
       </Files>
       ```
   
 * Inside your blog folder .htaccess file, add
    `RewriteOptions inherit`
 *  [iamonlythird](https://wordpress.org/support/users/iamonlythird/)
 * (@iamonlythird)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/auto-redirection-for-wp-loginphp/#post-4795983)
 * Just to highlight that this feature would be great to add to this plugin. I wouldn’t
   mind chipping in a Paypal donation when this happens.
 * Thank you!

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

The topic ‘Auto redirection for /wp-login.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rename-wp-login.svg)
 * [Rename wp-login.php](https://wordpress.org/plugins/rename-wp-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rename-wp-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rename-wp-login/)
 * [Active Topics](https://wordpress.org/support/plugin/rename-wp-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rename-wp-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rename-wp-login/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [iamonlythird](https://wordpress.org/support/users/iamonlythird/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/auto-redirection-for-wp-loginphp/#post-4795983)
 * Status: resolved