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

  1. Manitoba
    Posted 3 years 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.


  2. Manitoba
    Posted 3 years 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

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic