title: Forgot password needs to redirect from wp-login to a custom page
body: <p>Am new in wordpress. My doubt is,</p>
  
  <p>Now default user forgot password redirecting to <code>website/wp-login.php?action=lostpassword&amp;redirect_to=http%3A%2F%2website.com%2Fuser-profile</code></p>
  
  <p>But I have a custom page <code>/password-reset/</code>. So I refer some post and added below code in my theme function.php</p>
  
  <pre><code>add_filter( 'lostpassword_url', 'my_lostpassword_url', 10, 0 ); 
  function my_lostpassword_url() {
      return site_url('/password-reset/');
  }
  </code></pre>
  
  <p>But it's not working.</p>
  
  <p>So I added rewrite rule in <strong>.htaccess</strong> file - as first line</p>
  
  <pre><code>RewriteRule ^wp-login.php?action=lostpassword$ website.com/password-reset/ [R=301,L]
  </code></pre>
  
  <p>Both are not working. Any solution for this?</p>