I’d like to redirect WordPress lost password reset link to the main webpage so a link redirect but not sure on the correct syntax.
Desired result is
My.domain/wp-login.php?action=lostpassword
To
My.domain/index.php
I tried
redir “/wp-login.php?action=lostpassword” /
But that didn’t work. I tried removing the “?action=lostpassword” and the redirect did work when going to to the normal login page so redir doesn’t handle the added on action.
Any suggestions on how I can get the url and action to trigger a redirect?