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.
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?
Thread Starter
UMdB
(@umdb)
Is there any news about the fix of the problem from the developer of this plugin? Mvied, have you tryed kitchin fix?
@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