WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
[Plugin: WordPress HTTPS] strange redirection (6 posts)

  1. UMdB
    Member
    Posted 3 years ago #

    Hi,
    I'm trying to implement a way to have all the admin part with ssl.
    I've installed the plugin.
    My ssl connection is on a hostgator server with a ssl shared certificate.
    I've added the following string to the wp-config file

    define('FORCE_SSL_ADMIN', true);

    in the configuration part of the plugin I flagged the "Shared SSL"
    and added the encripted url
    https://nameserve.hostgator.com/~userid

    the problem is that when I try to connect I'm redirected to the site
    https://nameserve.hostgator.com/~userid/~userid

    I've tryed to remove the ~userid part, but it does not work :(

    any idea?

  2. kitchin
    Member
    Posted 3 years ago #

    Doing the same thing here. The plugin is buggy when using if for shared hosting and FORCE_SSL_ADMIN.

    I have a bunch of code fixes I am testing out, but then maintaining the changes becomes a chore. If anybody wants to test the new code, I can post it somewhere.

    The main changes:

    1. Override the pluggable function wp_redirect().

    2. WP will aggressively change
    a. http://example.com/dir
    to
    b. https://example.com/dir
    when what we want is
    c. https://shared.example2.com/dir2.
    So str_replace(b,c) in a few obvious & obscure places. The b should never appear anywhere, so that makes it easier.

    3. The part of process() at line 221, starting with:
    "$url_path = parse_url($url, PHP_URL_PATH)"
    is completely borked. Replaced all that code.

    4. When editing a page, make the "View page" and "Preview" links stay on HTTPS for all pages. Easier to use it that way.

    5. Clean up a few warnings when in WP debug mode, and remove some empty iterations due to off-by-one.

    I have some good debug functions now.

  3. dyrk
    Member
    Posted 3 years ago #

    Thanks for the help Kitchin.

    My problem is similar, though I'm only trying to force a single frontend page to SSL - with shared SSL certificate.

    I end up with an apache 404 with a message:

    'index.php was not found on this server.'

    I am using %category%/%postname% permalinks.

    Any ideas how I can fix this? Or is this still the same problem as above even though it's not admin?

  4. kitchin
    Member
    Posted 3 years ago #

    I posted part of my fix here: http://wordpress.org/support/topic/plugin-wordpress-https-trying-to-get-property-of-non-object
    but I'm not sure if that's enough to get it working for you.

  5. UMdB
    Member
    Posted 3 years ago #

    Is there any news about the fix of the problem from the developer of this plugin? Mvied, have you tryed kitchin fix?

  6. matthewjamesshaw
    Member
    Posted 3 years ago #

    @dyrk, I'm trying to do the same thing -- force a couple pages to SSL.

    From what I understand, this isn't supposed to be hard to implement... But the shared base URL from my host (bluehost) doesn't seem to be working

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic