WordPress.org

Ready to get started?Download WordPress

Forums

iThemes Security (formerly Better WP Security)
logout redirect to page not found (3 posts)

  1. cogmios
    Member
    Posted 1 year ago #

    I found this thhread again: http://wordpress.org/support/topic/plugin-better-wp-security-undefined-property?replies=11

    ... :) and it is still occuring: after logout it redirects me to a page not found page. Is it critical? No.

    this occurs NOT when you logout and the "admin" pages are present but when you logout and the "front site" is viewable. It then redirects to http://<SITE>/not_found?loggedout=true

    However... I solved it by adding:

    function redirect_logout() {
    			if ( preg_match('#(not_found)?(loggedout=true)#',$_SERVER['REQUEST_URI']))
    			{
    				header("Location: " . get_option('siteurl'), true);
    				exit;
    			}
    		}

    in better-wp-security.php and a call in the the construct: $this->redirect_logout();

    http://wordpress.org/extend/plugins/better-wp-security/

  2. cogmios
    Member
    Posted 1 year ago #

    could you add this somewhere?

  3. cogmios
    Member
    Posted 1 year ago #

    p.p.s. the trick is the "exit" so that follow-up header replacements do not take place.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.