WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
[resolved] Redirect loop and unabling to uninstall the plugin (1 post)

  1. Paskal_07
    Member
    Posted 2 years ago #

    I've got a lot of headache when I installed WordPress-HTTPS on my blog. It's running on nginx and ony thing I've got is redirect loop.
    Another funny problem is loop not gone after deinstallation of the plugin.

    So, there is the fix.

    Find WordPressHTTPS.php (located in /wp-content/plugins/wordpress-https/lib in plugin version 3.0) and remove following code:

    // Redirect login page. This is not pluggable due to the redirect methods used in wp-login.php
    if ( ( $GLOBALS['pagenow'] == 'wp-login.php' ) ) {
    setcookie(constant('TEST_COOKIE'), 'WP Cookie check', 0);
    if ( $this->getSetting('ssl_admin') && ! $this->isSsl() ) {
    $this->redirect('https');
    }
    }

    and replace anything after that string:

    public function redirect( $scheme = 'https' ) {

    with following:

    }
    }

    That should disarm the plugin and it will not harm anybody anymore.
    I hope plugin author will contact me on jabber paskal-07@ya.ru and nginx https recognition will be fixed, till then - better use nginx configuration tricks.

    http://wordpress.org/extend/plugins/wordpress-https/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic