WordPress.org

Ready to get started?Download WordPress

Forums

Rename wp-login.php
[resolved] multi site - inner sites are set to default although main site login url changed (9 posts)

  1. mahe84b
    Member
    Posted 9 months ago #

    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/

  2. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 9 months ago #

    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.

  3. mahe84b
    Member
    Posted 9 months ago #

    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.

  4. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 9 months ago #

    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.

  5. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 9 months ago #

    Oh ok, their tables are separate entirely.

  6. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 9 months ago #

    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.

  7. mahe84b
    Member
    Posted 9 months ago #

    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.

  8. mahe84b
    Member
    Posted 9 months ago #

    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();

    }

  9. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 7 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.