Steps to rename wordpress wp-login.php file

1. Find and replace the text “wp-login.php” on /wp-login.php file with “hidden-login.php”
2. Find and replace the text “wp-login.php” on /wp-includes/general-template.php file with “hidden-login.php” except this line on wp_login_url function, like :
    $login_url = site_url('wp-login.php', 'login'); for new version, or
    return site_url("wp-login.php$redirect",'login'); for old version
    just let it be the way it is, otherwise when you go to wp-admin, it will redirect to “hidden-login.php”
3. Rename /wp-login.php file into hidden-login.php

Reference: http://crazydavinci.net/2010/11/secure-wordpress-login/

No comments:

Post a Comment