Title: CDN Rewrite
Last modified: August 22, 2016

---

# CDN Rewrite

 *  [sojic](https://wordpress.org/support/users/sojic/)
 * (@sojic)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cdn-rewrite-1/)
 * I need a plugin, which will rewrite all images/css/js url’s to CDN.
 * There is bunch of plugins but none of them fulfil my requirements.
 * I have found [http://wordpress.stackexchange.com/questions/2490/what-is-the-best-caching-option-for-wordpress-multi-site-on-non-shared-hosting/2494#2494](http://wordpress.stackexchange.com/questions/2490/what-is-the-best-caching-option-for-wordpress-multi-site-on-non-shared-hosting/2494#2494)
   which is probably that what I need, but it doesn’t work.
 * Here are my simple needs, which I believe, are useful for a lot of users.
 * I need plugin where I can “remap” static content, ex:
 * src: /wp-content/themes/currentTheme -> [http://mycustomcdn.com/theme](http://mycustomcdn.com/theme)
   
   src /wp-content/uploads -> [http://mycustomcdncom/images](http://mycustomcdncom/images)
 * I have found [https://wordpress.org/plugins/image-url-rewrites-for-cdn/](https://wordpress.org/plugins/image-url-rewrites-for-cdn/)
   which is close to my requirements, but it is rewriting only images into a post.
   It does not rewrite “featured image” as well as theme files.
 * I have tried to edit the plugin and make a filter to trigger on add_filter(‘wp_get_attachment_image_src’,’
   dcr_replace_content_cdn’);
 * but unsuccessful (I am not familiar with creating wp plugins from scratch).

The topic ‘CDN Rewrite’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [sojic](https://wordpress.org/support/users/sojic/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/cdn-rewrite-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
