• Resolved lucamc

    (@lucamc)


    I noticed that this happens: I log on to the site, as long as I stay logged in everything is ok. When I log out (google chrome) the custom url starts redirecting to wp-admin generating a 404 error and preventing login.

    If I delete the stogage cache from the console it starts working again.

    If I don’t clear the cache, the 404 redirect problem goes on for days.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am having this same problem although clearing cache does not resolve the issue. Is there a PHP snippet that would resolve this issue?

    Plugin Author NicolasKulka

    (@nicolaskulka)

    Yes, after disconnection, this sends back to / wp-admin which no longer exists so 404, you must reset / login or the slug you have chosen to connect again.

    Some code to fix this issue:

    /* Redirect logout */
    add_action(‘wp_logout’,’ps_redirect_after_logout’);
    function ps_redirect_after_logout(){
    wp_redirect( ‘YOUR URL HERE’ );
    exit();
    }

    • This reply was modified 3 years, 8 months ago by Lightwing.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error 404 after logout’ is closed to new replies.