-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin with reverse proxy generates bad links in WP multisite #36
Comments
I'm seeing a similar issue, in that my links and form actions aren't parsed at all. Making the following change fixed this for me, but it's definitely a bit of a hack. /Module/Parser.php:390 From:
To:
|
Hi @jonathanbull, it don't solves the issue completely. The
Thank you for your reply! 👍 |
Just tested it and you're quite right. My change fixes the non-parsing of links and form actions, but will need a bit more work to get it work with your setup. |
A question: is this problem only present by using Wordpress 4.0? Or is this issue a general issue by using reverse proxy as SSL host? |
@jonathanbull issue solved: /Module/Parser.php:390 /** Start changed FROM - Bugfix https://github.com/Mvied/wordpress-https/issues/36 */
/** if ( $force_ssl == true ) { */
/** TO */
if ( $force_ssl == true || $this->getPlugin()->isSsl() && ( $this->getPlugin()->getSetting('ssl_host_diff') || ( !$this->getPlugin()->getSetting('ssl_host_diff') && strpos($url, 'http://') === 0 ) ) ) {
/** End changed - Bugfix */
if ( is_null($blog_id) ) {
$updated = $this->getPlugin()->makeUrlHttps($url);
/** Start added - Bugfix https://github.com/Mvied/wordpress-https/issues/36 */
} else if ( $this->getPlugin()->getSetting('ssl_host', $blog_id) &&
strpos($url, $this->getPlugin()->getSetting('ssl_host', $blog_id)) === 0 ) {
$updated = $url;
/** End added - Bugfix */
} else {
if ( $this->getPlugin()->getSetting('ssl_host', $blog_id) ) {
... What do you mean? Should we make a pull request? |
Wordpress: 4.0 (http://codex.wordpress.org/Version_4.0)
Works without problems on Wordpress 3.8.1!!!
I'm using this configuration:
The Wordpress HTTPS plugin has the following configuration:
SSL Host: ssl-reverse-proxy.com/example.com
Force SSL Admin: true
Force SSL Exklusiv: true
Proxy: auto
I want to get:
Front-End site:
http://example.com
Back-End site:
https://ssl-reverse-proxy.com/example.com/wp-admin/...
Wordpress login site
has bad form action url:
All links of the Network drop down menu are:
LOG login page:
Any idea how to solve this problem?
The text was updated successfully, but these errors were encountered: