WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
[resolved] Fully SSL-enabled site OK w/exception of FeedBurner (7 posts)

  1. Jark
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/wordpress-https/

  2. Mvied
    Member
    Plugin Author

    Posted 1 year ago #

    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://', 'http://', $url);
    }
    
    add_filter('feed_link', 'http_feed', 10);
  3. Jark
    Member
    Posted 1 year ago #

    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, http://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!

  4. Mvied
    Member
    Plugin Author

    Posted 1 year ago #

    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);
  5. Jark
    Member
    Posted 1 year ago #

    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!

  6. galloti
    Member
    Posted 1 year ago #

    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?

  7. galloti
    Member
    Posted 1 year ago #

    my link is:

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

    y´m noob now srrsrs

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic