• Resolved altimac

    (@altimac)


    Hi, love your plugin and thank you for providing this at no cost. Just a quick question, I need to serve just ONE page via https://, so I added this to my child theme’s functions.php:

    function rsssl_exclude_http_url($html) {
    $html = str_replace(“https://sng.news/feed/SNG-Top-Alexa”, “https://sng.news/feed/SNG-Top-Alexa”, $html);
    return $html;
    }
    add_filter(“rsssl_fixer_output”,”rsssl_exclude_http_url”);

    as per a forum post in which you addressed dealing with this via the mixed content fixer. But I still can’t get this page to stop redirecting to https:// and Amazon’s Alexa flash briefing skill apparently doesn’t like or recognize Let’s Encrypt certs. Is this simply not going to work no matter what I do, or is there another way to do this? It’s clearly a problem with Amazon vs. the cert, but just trying to work around it somehow. Thanks for any info you can provide.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    The mixed content fixer excludes an url in the html of a page from being replaced to https (for example, an image), which is not what you are looking for: you want an entire page not redirecting to https.

    I’ve written an article about how you can do this:
    https://really-simple-ssl.com/knowledge-base/disabling-ssl-for-one-page-only/

    Thread Starter altimac

    (@altimac)

    Ah, sorry I misinterpreted that and thanks for the clarification. But the more I read on this the more it seems that it’s not possible to do given that if the site’s homepage is served via SSL, then the entire site HAS to be served the same way as far as the browser is concerned? This is my .htaccess file now:

    # Enable Strict Transport Security
    Header set Strict-Transport-Security “max-age=31536000” env=HTTPS

    # BEGIN rlrssslReallySimpleSSL rsssl_version[2.5.11]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteCond %{HTTP_HOST} ^sng.news [OR]
    RewriteCond %{HTTP_HOST} ^www.sng.news
    RewriteCond %{REQUEST_URI} !/feed/SNG-Top-Alexa
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    AddHandler application/x-httpd-php70 .php .php5 .php4 .php3

    and it still refuses to serve the non-SSL version of /feed/SNG-Top-Alexa. I am getting the feeling I am going to have to either upgrade my SSL cert, or complain to Amazon about this ;-(

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I’ve recently had successes with the homepage on SSL and subpages not on SSL, but you might have to leave the siteurl and homeurl on https. You’ll need to use the safe mode in Really Simple SSL to achieve that:
    https://really-simple-ssl.com/knowledge-base/using-safe-mode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Only one page via https://’ is closed to new replies.