title: WordPress - New wp-login URL
body: <p>I want to change the <code>wp-login.php</code> url. Got most of it working:</p>
  
  <pre><code>if(basename($_SERVER['REQUEST_URI']) == 'theadmin'){
      include ABSPATH . '/wp-login.php';
      exit; 
  }
  </code></pre>
  
  <p>But the form submits to <code>wp-login.php</code>. I don't want to copy the full <code>wp-login.php</code>, because WordPress core might change in the future, and so does that file.</p>
  
  <p>Is there any way to get the code working properly, so the errors appear and submits to <code>/theadmin</code>?</p>