• Resolved Jark

    (@jark)


    I am using the “Force SSL Administration” option, as well as a “URL Filter” set to “/” to ensure the entire site is fully SSL-enabled. My goal is to have the all pages on the site using SSL, and that seems to have been fine with one notable exception: FeedBurner is not SSL-aware and cannot read SSL-enabled feeds.

    So…any ideas how can I ensure /feed/ is HTTP only (not secure), so FeedBurner can pickup the RSS feed?

    https://www.ads-software.com/extend/plugins/wordpress-https/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author mvied

    (@mvied)

    You can use the feed_link filter built in to WordPress. You can place this in your theme’s functions.php or in a custom plugin if you want the ability to turn it on and off.

    function http_feed( $url ) {
        return str_replace('https://', 'https://', $url);
    }
    
    add_filter('feed_link', 'http_feed', 10);
    Thread Starter Jark

    (@jark)

    Thanks so much for the quick response. That seems to have fixed the links to the feeds, such as those in the HTML header of the WP theme and whatnot.

    However, https://site/feed/ still redirects to https://site/feed/ – which is also what I am trying to stop it from doing. Since FeedBurner is incompatible with SSL-enabled RSS feeds, I need to be able to stop the plugin from redirecting http feed requests to https.

    Any ideas?

    Cheers!

    Plugin Author mvied

    (@mvied)

    I created the ‘force_ssl’ filter so that a developer can override any functionality of the plugin in regards to forcing pages to/from HTTPS.

    function http_feed_force_ssl( $force_ssl, $post_id = 0, $url = '' ) {
        if ( strpos($url, '/feed/') !== false ) {
            $force_ssl = false;
        }
        return $force_ssl;
    }
    
    add_filter('force_ssl', 'http_feed_force_ssl', 10, 3);
    Thread Starter Jark

    (@jark)

    Thank you so much for the code and the assistance. That did the trick. Using the code above no longer forces /feed/ to be redirected to the SSL-enabled side. I really do appreciate the help.

    Cheers!

    Hello I want to use feedburner and also liked this helps but as a beginner in wordpress and feedburner?!

    Where do I put this script? to leave the page at http feeds?

    my link is:

    https://galloti.eti.br/wordpress/?feed=rss2

    y′m noob now srrsrs

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fully SSL-enabled site OK w/exception of FeedBurner’ is closed to new replies.