I have my website built with wordpress 4.5.2
.
For wordpress contro panel, it it normal to login with myweb.com/wp-admin
directory. But I have another control panel with other application in the directory myweb.com/admin
.
The problem is whenever I try to login to myweb.com/admin
it redirects to myweb.com/wp-admin
How to disable it?
You should cancel the default shortcuts in
function.php
:From the docs:
wp_redirect_admin_locations()
:Can you please add below code in your
functions.php
I hope this solution is work for you