title: wordpress redirect to subdomain after login
body: <p>I have my  wordpress blog at <code>www.mysite.com</code> , also I have my own php application at a subdomain <code>l.mysite.com</code></p>
  
  <p>I want the login credentials of WordPress in my PHP application. I figured out that by including the <code>wp-blog-header.php</code> from the root to my app.</p>
  
  <p>I can use the user info OK.</p>
  
  <p>I wanted to redirect users to <code>www.mysite.com/wp-login.php?redirect_to=l.mysite.com</code> . You can see here that I am specifying the <code>redirect_to</code> parameter. Wordpress ignores this and redirects to admin panel. </p>
  
  <p>I  think that worpdress doesn't allow redirect to an "external domain" , which I think is specified in <code>wp_safe_redirect()</code> function in wordpress. Is there any plugin which could ignore some domain to which redirect can happen?</p>
  
  <p>I see that there are many login specific redirect plugins but none which could do to a new doamin.</p>