Try this
Note: You must be logged into wordpress first.
1- Go to wp-config.php and add the following:
define('WP_ADMIN_DIR', 'backend');
define('ADMIN_COOKIE_PATH', SITECOOKIEPATH . WP_ADMIN_DIR);
2- Add this code in the function.php of your theme.
add_filter('site_url', 'wpadmin_filter', 10, 3);
function wpadmin_filter( $url, $path, $orig_scheme ) {
$request_url = $_SERVER['REQUEST_URI'];
$check_wp_admin = stristr($request_url, 'wp-admin');
if($check_wp_admin and !is_user_logged_in()){
wp_redirect( home_url( '404' ), 302 );
exit();
}
/**Esto permite mantener la carpeta wp-admin**/
$old = array( "/(wp-admin)/");
$admin_dir = WP_ADMIN_DIR;
$new = array($admin_dir);
return preg_replace( $old, $new, $url, 1);
}
add_rewrite_rule( '^' . 'backend/(.*)','wp-admin/$1?%{QUERY_STRING}' );
flush_rewrite_rules();
3- Replace the word " backend ", whichever you want. and you sign in as mysitio.com/backend / (with the bar at the end /)
4- Go to Settings - > Permanent links and give to save changes.
That's it.
Source: link