New Landing How can we help? Cardinal SSL exception for RSS feed

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Cardinal
  • #284371
    nikosk
    Member
    Post count: 65

    Hello,

    I have an rss feed pull service for our article posts which does not support https.
    So with our recent upgrade to SSL the articles cannot be pulled.

    Can we add an ssl exception to the child theme functions.php ?

    I tried adding this without success

    function http_feed( $url ) {
    return str_replace(‘https://’, ‘http://’, $url);
    }

    add_filter(‘feed_link’, ‘http_feed’, 10);

    Looking forward to your reply.

    Regards,

    Nikolas

    #284372
    nikosk
    Member
    Post count: 65
    This reply has been marked as private.
    #284483
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    What is the url of website and rss feed also?
    Thanks
    Mohammad

    #284493
    nikosk
    Member
    Post count: 65
    This reply has been marked as private.
    #284497
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    This url is working fine to me. Are you getting any error at this url https://kakiasoptics.gr/feed/. I can see the feed articles.
    Thanks
    Mohammad

    #284507
    nikosk
    Member
    Post count: 65
    This reply has been marked as private.
    #284546
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this code:-

    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);

    Thanks ๐Ÿ™‚
    Mohammad

    #284667
    nikosk
    Member
    Post count: 65
    This reply has been marked as private.
    #284736
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me FTP login detail to inspect and resolve the issue.
    Thanks ๐Ÿ™‚
    Mohammad

    #284857
    nikosk
    Member
    Post count: 65
    This reply has been marked as private.
    #284861
    Mohammad – SUPPORT
    Moderator
    Post count: 27441
    This reply has been marked as private.
    #287269
    nikosk
    Member
    Post count: 65
    This reply has been marked as private.
    #287335
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    All replies are private so its already a private topic.
    Thanks
    Mohammad

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register