WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
Send all login requests to the main site in multisite (2 posts)

  1. Manitoba
    Member
    Posted 1 year ago #

    Hi, is there a way I can handle all the login requests from one login page in a multisite?
    I have mysite.com/login, mysite.com/subsite1/login. How do I send request from mysite.com/subsite1/login to mysite.com/login, and send user back to mysite.com/subsite1?
    I have tried so far without success:

    function tml_action_url_filter( $url, $action, $instance ) {
    	if ( 'login' == $action )
    		return network_site_url( 'login' );
    }
    add_filter( 'tml_action_url', 'tml_action_url_filter', 10, 3 );

    Any help will be really appreciated.
    Thanks

    http://wordpress.org/plugins/theme-my-login/

  2. Manitoba
    Member
    Posted 12 months ago #

    I found it!!!

    RewriteRule ^(.*)/login/$ http://mysite.com/login/ [L,QSA,NE]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic