• Resolved danielecclestone

    (@danielecclestone)


    We noticed that the url we set for the login page returns a 404 page error. I turned off the plugin via ftp, logged using the default wp-login.php, turned the plugin back on, then tried changing the login url to something different for testing purposes, and it worked.
    But when I tried to set it back to the original url we had set, we got the 404 error again.
    I tried refreshing permalinks and that didn’t help.
    I even tried deleting the plugin and reinstall again but the same url keep throwing that 404 error.
    Does deleting the plugin delete all data from tables in database?

    Do you know of a way to let us reuse the original url we had set?

Viewing 6 replies - 1 through 6 (of 6 total)
  • HostingHelper

    (@audiofraterntity)

    happening to me also and when i add a new website and install the plugin I get the same error. might be the new WP update causing this?

    will try an older version of WP and see or can the plugin version be changed back to an older one.

    I am running into the same problem after updating to 5.7.1. One thing I noticed is that if I click on my login link on my main menu, it now appends
    “?redirect_to=index.php”
    after the login url slug. I don’t think it was doing that before. Everything is fine for accounts that have access to the backend, but accounts that only have frontend access are sent to the 404 page.

    • This reply was modified 3 years, 7 months ago by hmcody.
    • This reply was modified 3 years, 7 months ago by hmcody.

    Update: The redirect was included in my login/logout code. Once I took that out, everything is working as it should.

    May I know where and how you took login/logout redirect code out? I am having the same issue but dunno how to get this fixed… Please kindly share some light.

    At the same time I wish WPS Hide Login team share some documentation on this.

    Thread Starter danielecclestone

    (@danielecclestone)

    I don’t know if this plugin just doesn’t work anymore with the new WP Core or if it’s something on my end. I wouldn’t know as I haven’t heard a peep from any devs for over a week, acknowledging the problem, nor did I receive simple troubleshooting help.

    I’m just going to use a different plugin. I found one that literally does the exact same thing as this plugin but it works.

    It’s called “Change wp-admin login”. https://www.ads-software.com/plugins/change-wp-admin-login/

    Not sure if this will get deleted by a mod but if you’re still having issues use this plugin instead.

    Sorry, @futureyoon, I thought I had replied to you before. This is the code I use. The commented out line was what was causing the problem. Once I removed ‘index.php’ everything started working again.

    //Add Login/Logout to front-end menus
    add_filter(‘wp_nav_menu_items’, ‘add_login_logout_link’, 10, 2);
    function add_login_logout_link($items, $args) {
    ob_start();
    //wp_loginout(‘index.php’);
    wp_loginout();
    $loginoutlink = ob_get_contents();
    ob_end_clean();
    $items .= ‘

    • ‘. $loginoutlink .’
    • ‘;
      return $items;
      }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Login URL gives 404 error after core update’ is closed to new replies.