Title: [Plugin: WP Super Cache] CDN script creates invalid links: &quot;http://http://cdn.hostname.com&amp;quot
Last modified: August 20, 2016

---

# [Plugin: WP Super Cache] CDN script creates invalid links: "http://http://cdn.hostname.com&quot

 *  [simondaniels23](https://wordpress.org/support/users/simondaniels23/)
 * (@simondaniels23)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-cdn-script-creates-invalid-links-httphttpcdnhostnamecom/)
 * Hello,
 * I enabled CDN support in WP Super Cache and put in my CDN URL (e.g. [http://12345abc.cloudfront.net](http://12345abc.cloudfront.net)).
   This turned all my links into [http://http://12345abc.cloudfront.net/path/file.js](http://http://12345abc.cloudfront.net/path/file.js).
   Note the double [http://](https://wordpress.org/support/topic/plugin-wp-super-cache-cdn-script-creates-invalid-links-httphttpcdnhostnamecom/?output_format=md).
   Obviously that means my website doesn’t load properly.
 * Even when I omit http:// from my CDN URL, I still get this. I’ve tried turning
   caching off and on but no luck.
 * Any ideas? Thanks!
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

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

 *  [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-cdn-script-creates-invalid-links-httphttpcdnhostnamecom/#post-2561810)
 * Very odd. The only thing I can suggest is you look at the ossdl php file and 
   try to figure out from the code what’s happening.
 *  Thread Starter [simondaniels23](https://wordpress.org/support/users/simondaniels23/)
 * (@simondaniels23)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-cdn-script-creates-invalid-links-httphttpcdnhostnamecom/#post-2561818)
 * If it helps, here’s how I’m attaching my stylesheets:
 * wp_enqueue_style(“jqueryui_css”, get_bloginfo( ‘stylesheet_directory’ ).”/css/
   jqueryui/custom.css”, false, $pp_theme_version, “all”);
 * The regex in ossdl.php is fairly complex and I’m nervous messing with it. Can
   I try a separate CDN plugin? Will that conflict with Super Cache?
 * Thanks!
 *  [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-cdn-script-creates-invalid-links-httphttpcdnhostnamecom/#post-2561822)
 * You can of course use another CDN plugin. Just disable the one in Supercache 
   first and there won’t be any conflict.

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

The topic ‘[Plugin: WP Super Cache] CDN script creates invalid links: "http://http://
cdn.hostname.com&quot’ is closed to new replies.

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-cdn-script-creates-invalid-links-httphttpcdnhostnamecom/#post-2561822)
 * Status: not resolved