Hey @grosso2020,
Hope you’re well.
Is Defender login mask still active for your site? I can reach the wp-login.php page for your site but it looks like broken somehow. Are you using any other login page affecting plugin, maybe it’s causing conflict together?
For the second problem, I am not sure is there anything we can do about it, because both login and logout should go through masked URL when you activate that feature. But I will ask developers about it.
Cheers,
Oguz
Thanks for answer!
I activated plugin and mask url https://minusator.ru/auth
Please follow this link – https://minusator.ru/login and view result
Hey @grosso2020,
Hope you’re well.
The default WordPress login URL is https://minusator.ru/wp-login.php page. So can you let me know how did you create that https://minusator.ru/login URL?
Cheers,
Oguz
Thanks, i`m fine!
Wordpress 4.9.8
go to – wp-includes/canonical.php
And find this code
/**
* Redirects a variety of shorthand URLs to the admin.
*
* If a user visits example.com/admin, they'll be redirected to /wp-admin.
* Visiting /login redirects to /wp-login.php, and so on.
*
* @since 3.4.0
*
* @global WP_Rewrite $wp_rewrite
*/
function wp_redirect_admin_locations() {
global $wp_rewrite;
if ( ! ( is_404() && $wp_rewrite->using_permalinks() ) )
return;
$admins = array(
home_url( 'wp-admin', 'relative' ),
home_url( 'dashboard', 'relative' ),
home_url( 'admin', 'relative' ),
site_url( 'dashboard', 'relative' ),
site_url( 'admin', 'relative' ),
);
if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $admins ) ) {
wp_redirect( admin_url() );
exit;
}
$logins = array(
home_url( 'wp-login.php', 'relative' ),
home_url( 'login', 'relative' ),
site_url( 'login', 'relative' ),
);
if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $logins ) ) {
wp_redirect( wp_login_url() );
exit;
}
}
So, that I’m fine!
This standart code wordpress 🙂
P.S. and also works by default redirection /admin to /wp-admin
-
This reply was modified 7 years, 9 months ago by
grosso2020.
-
This reply was modified 7 years, 9 months ago by
grosso2020.
Hey @grosso2020,
Hope you’re well.
Thanks for informing me, I can see the issue now. I reported this to our developers and looks like already has a bug report about it. So it will be fixed at one of the next releases.
Cheers,
Oguz