Title: Handle http to https redirect (and other redirect..)
Last modified: May 22, 2018

---

# Handle http to https redirect (and other redirect..)

 *  Resolved [lulutchab](https://wordpress.org/support/users/lulutchab/)
 * (@lulutchab)
 * [8 years ago](https://wordpress.org/support/topic/handle-http-to-https-redirect-and-other-redirect/)
 * Hello,
 * I just saw that if we gave an HTTP URL to the shortcode and the target web server
   redirects on HTTPS, the shortcode won’t display anything…
 * I would suggest to add this line to your CURL request.
    `curl_setopt($ch, CURLOPT_FOLLOWLOCATION,
   true);`
 * Regards
    -  This topic was modified 8 years ago by [lulutchab](https://wordpress.org/support/users/lulutchab/).
    -  This topic was modified 8 years ago by [lulutchab](https://wordpress.org/support/users/lulutchab/).

The topic ‘Handle http to https redirect (and other redirect..)’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/remote-content-shortcode.svg)
 * [Remote Content Shortcode](https://wordpress.org/plugins/remote-content-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/remote-content-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/remote-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/remote-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/remote-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/remote-content-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [lulutchab](https://wordpress.org/support/users/lulutchab/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/handle-http-to-https-redirect-and-other-redirect/)
 * Status: resolved