WordPress.org

Support

Support » Plugins and Hacks » Rename wp-login.php » [Resolved] multi site – inner sites are set to default although main site login url changed

[Resolved] multi site – inner sites are set to default although main site login url changed

  • Hi,

    Thanks very much for the plugin. it’s working like gem.
    My problem is am using multi site wordpress installation when I change the url on the main dashboard(ex: mainsite/customlogin) the inner sites still has the login permalink as “innersites/login”.

    It is hard to change login permalink for each site. is ther any other way, please advise.

    Thanks and Regards,
    Mahesh.

    http://wordpress.org/plugins/rename-wp-login/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ella van Dorpe

    @iseulde

    I don’t really have any experience with multi site. Isn’t it possible to activate the plugin for each website and then change it? Or do you want to change all the urls at once? Not sure if the latter is possible, but I’ll try to figure it out.

    mahe84b

    @mahe84b

    Yes, I would like to change all the urls at once.

    Because to leave the inner sites login with default option as “/login” is not recommended either.

    I am reviewing the code and found that if the option is not specified for inner sites it’s taking hard coded value ‘login’ for innersites. am working on to modify the code to correct this. will provide you modified code once done.

    Plugin Author Ella van Dorpe

    @iseulde

    I’ll try to find out how multi site works exactly. Do they have separate options tables? In that case they’ll need to be set all at once when updating the option.

    Plugin Author Ella van Dorpe

    @iseulde

    Oh ok, their tables are separate entirely.

    Plugin Author Ella van Dorpe

    @iseulde

    So it’s probably best to leave the plugin as it is, because not everyone would want to set the same url for the whole network, but add the option to have a network wide default.

    mahe84b

    @mahe84b

    yes i agree it is good to have different login url for each inner site.

    I am working on to add an option to have a network wide default login url.

    mahe84b

    @mahe84b

    Finally this hack resolved my problem.
    In plugin file : rename-wp-login.php
    line number: 125
    change the code as below

    *****************************************************************

    if ( ! get_option( ‘rwl_page’ ) || get_option( ‘rwl_page’ ) == ” ) {
    switch_to_blog(1);
    update_option( ‘rwl_page’, wp_unique_post_slug( get_option( ‘rwl_page’ ), 0, ‘publish’, ‘page’, 0 ) );

    restore_current_blog();

    }

    Plugin Author Ella van Dorpe

    @iseulde

    Version 2.0 now supports multisite and you can set a network wide default!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] multi site – inner sites are set to default although main site login url changed’ is closed to new replies.
Skip to toolbar