Disclaimer

This blog is kind of my own personal work Notebook, and the processes below are only guaranteed to work for my specific configurations. So, use this info at your own risk, and please understand I won't be able to provide any help if you break something

Tuesday, March 31, 2015

"http:" stripped out of the images link on RSS Feeds

Issue:
 "http:" is being stripped out of the images link URL on RSS Feeds

This issue was taking place because 'HTTPS Protocol Rewriting' was turned on in the CloudFlare settings. ​

Protocol Rewriting in this context convert links within your WordPress site to images, stylesheets, and scripts from using either "http://" or "https://" to using just "//". This rewrite tells your browser to load all of these assets using the same protocol as the base page loaded. ​

By default, this option is enabled and for the majority of users there are no negative effects. ​However when outputting an RSS feed this rewriting breaks the absolute URL by stripping out the "http:" part and therefore prevents the images from being fetched. ​ ​

Solution:
Disable HTTPS Protocol Rewriting in the settings for CloudFlare on the admin side of WordPress:

1 comment: