Title: CloudFront CDN origin with path
Last modified: November 7, 2016

---

# CloudFront CDN origin with path

 *  [theyuv](https://wordpress.org/support/users/theyuv/)
 * (@theyuv)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/cloudfront-cdn-origin-with-path/)
 * Hello,
 * I would like to specify a CloudFront CDN in the AO settings.
    However, for my
   CloudFront CDN, I would like to specify a specific path for the origin so that
   the CDN doesn’t store all of my files (eg: [Wordpress blog root]/wp-content/cache/
   autoptimize).
 * If this is the case, the correct url for fetching the file would be relative 
   to the path set (eg: [CDN root]/css/autoptimize.css).
 * What url then would I enter into the Autoptimize settings for this to work properly?
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/cloudfront-cdn-origin-with-path/#post-8405584)
 * That’s not possible out of the box theyuv, as AO expects the “layout” of the 
   CDN and the origin server to be the same (so /wp-content/cache/autoptimize/ and/
   wp-content/themes/yourttheme/ and wp-content/plugins) for both.
 * You might however be able to work around this using the API, [as described in this GitHub issue](https://github.com/futtta/autoptimize/issues/61).
 * hope this clarifies,
    frank

Viewing 1 replies (of 1 total)

The topic ‘CloudFront CDN origin with path’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [cdn](https://wordpress.org/support/topic-tag/cdn/)

 * 1 reply
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/cloudfront-cdn-origin-with-path/#post-8405584)
 * Status: not resolved