Closed G-J-Z closed 6 years ago
The following is a quick fix :
function s4_edit_feed_links($link) {
if(is_ssl()){
$link = str_replace('http://', 'https://', $link);
}
return $link;
}
add_filter('the_permalink_rss', 's4_edit_feed_links');
As suggestd by @s4ad I added PHP-code but it did not result in fixing the issue.
To avoid problems with upgrades or switching themes the code below was added as a plug-in and activated.
Into /wp-content/plugins/pepr-fix-permalink/pepr-fix-permalink.php:
function s4_edit_feed_links($link) {
if(is_ssl()){
$link = str_replace('http://', 'https://', $link);
}
return $link;
}
add_filter('the_permalink_rss', 's4_edit_feed_links');
PS: It is possible to add this code to ../wp-content/themes/
I have tested this as a permanent fix and it seems to work great. Will be in the next version.
We could not get Bloglovin to work with the feed https://www.agreencoconut.nl/feed. It turned out that while the whole blog was using https and also in the settings, content inside the feed wasn't . We found this by checking the feed validity: http://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fwww.agreencoconut.nl%2Ffeed%2F Result: Server returned HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Moved Permanently
When looking at the feed we immediately found that all links where not using https:
What can we do to fix this. It appears that some parts work but most don't. Help is appreciated.