In your .htaccess file, add a redirect like this.
RewriteRule ^wp-login.php /login/ [R,L]
This will redirect that login page to UM Login Page.
Done.
But now when i click the ‘login to our site’ button in the confirmation email after signing up, i get an error message saying the page isn’t redirecting properly. I can see in the address bar that it is still trying to access https://ons-greens.com/wp-login.php
Any idea?
Hi @tabonik
Could you please try this code?
add_action('init','um_redirecto_custom_login');
function um_redirecto_custom_loginn(){
global $pagenow;
if( 'wp-login.php' == $pagenow && function_exists("um_get_core_page") ) {
wp_redirect( um_get_core_page("login") );
exit();
}
}
Regards,
Hi Champ,
I tried the code but i got an error screen.
Don’t know excactly what i did, but i just got it working. Without using any code to the .htaccess file.
I know i have been peeling with the UM settings as well. General –> pages was not fully to it’s default settings so i restored that. I assume that could have been the culprit.
Thanks a lot for both your assitance!
Hi @tabonik
Thanks for letting us know how you resolve the issue. I am closing the thread now.
Regards,