• Resolved Geraldo Pena Perez

    (@geraldopena)


    I am working locally in my computer with your plugin. The external urls I am using, have https. I am pulling images and video from an extremely reliable source (my media server). However, all the links I get from it have https protocol.

    When I verify the links after created, they are all http:// …

    Is this behaviour intended? Is there a setting I can use to prevent this?

    Thanks for the plugin!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author threadi

    (@threadi)

    Hi, thanks for your question.

    Take a close look at the source URL and the URL of the file in the media library. If an external https URL is used, but WordPress does not use https, the file is saved locally. As a result, it is then provided locally via the proxy provided by the plugin – and under the http URL of WordPress, not the original external https URL.

    Reason: To avoid error messages in browsers. They don’t like it when you mix http and https.

    The behavior can be adjusted. There is the hook “eml_http_ssl” whose return must be set to false to prevent the behavior described above. But then it could happen that the browser complains, for example, when an image is called up because it is not called up with the same protocol as the website.

    See also: https://github.com/threadi/external-files-in-media-library/blob/master/docs/hooks.md#eml_http_ssl

Viewing 1 replies (of 1 total)

The topic ‘https links change to http’ is closed to new replies.