Title: Amazon Cloudfront Integration not working
Last modified: October 10, 2017

---

# Amazon Cloudfront Integration not working

 *  [ssaha1](https://wordpress.org/support/users/ssaha1/)
 * (@ssaha1)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/amazon-cloudfront-integration-not-working/)
 * The files uploaded to our site is supposed to be sent to Amazon S3 bucket through
   Amazon Cloudfront service which has stopped working after WordPress and plugin
   upgrade to the latest version.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [codesniper](https://wordpress.org/support/users/codesniper/)
 * (@codesniper)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/amazon-cloudfront-integration-not-working/#post-9696568)
 * Hello,
 * I am having similar issue. Uploaded media are not auto syncing to S3 bucket. 
   I’ve tried changing Auto upload interval to 30 seconds but still no luck
 *  Thread Starter [ssaha1](https://wordpress.org/support/users/ssaha1/)
 * (@ssaha1)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/amazon-cloudfront-integration-not-working/#post-9713986)
 * Hi,
 * It got solved for me by changing a line in Cdn_Plugin.php
 *     ```
        function _link_replace_callback_ask_cdn($match, $quote, $url, $path) {
       ... 
       ...
       $new_url = $cdn->format_url($path);
       ...
       ...
       }
       ```
   
 * inside format_url() function changed $remote_path to $path.
 * Hope it works for you as well.
 * Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Amazon Cloudfront Integration not working’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ssaha1](https://wordpress.org/support/users/ssaha1/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/amazon-cloudfront-integration-not-working/#post-9713986)
 * Status: not resolved