Redirecting a URL with an action parameter
<p>I've disabled password resetting for a CMS however if anyone knows the necessary URL, they can still arrive at an obsolete password reset form:</p>

<pre><code>www.mysite.com/wp-login.php?action=lostpassword
</code></pre>

<p>Should a user manually type this URL, I'd like the URL to automatically redirect to: </p>

<pre><code>www.mysite.com/wp-login.php
</code></pre>

<p>I'm ultimately trying to prevent the action parameter in the URL from triggering the password reset form.</p>

<p>Would I be correct in this instance to <a href="https://wordpress.org/plugins/simple-301-redirects/" rel="nofollow">use a 301 redirect</a> or is there a more advisable approach? </p>