How can I redirect user from wp-admin
to another custom page, for example I want to redirect this url:
http://example.com/wp-admin
to:
http://example.com/custom
How can I redirect user from wp-admin
to another custom page, for example I want to redirect this url:
http://example.com/wp-admin
to:
http://example.com/custom
You must be logged in to post a comment.
OR try like this
The easiest way would probably be to create a
.htaccess
file in yourwebroot directory
.Afterwards write this into it:
Quite self explanatory.
Redirect
from first link/wp-admin
to second linkhttp://www.example.com/custom
Another way would probably be to use wordpress
wp_redirect()
function, something like this:Use following code in your functions.php file to redirect to another URL.