I wrote my first WordPress plugin which will help rewriting js, css and theme file’s url to your own CDN network. So you don’t have to hack wordpress files.
I use SimpleCDN and I was looking for something to make my rewriting rules a thing of the past, so that I can minimize requests to my own files (currently they just 301 redirect to SimpleCDN). Your plugin could be the perfect thing, except most of the files I want to offload to SimpleCDN are images.
Is this something you think can be added? Some of my pages have 1MB of images and offloading those is essential but I really need to cut down the number of requests to my own server.
Hey there,
I use SimpleCDN and I was looking for something to make my rewriting rules a thing of the past, so that I can minimize requests to my own files (currently they just 301 redirect to SimpleCDN). Your plugin could be the perfect thing, except most of the files I want to offload to SimpleCDN are images.
Here’s my current rewrite rule:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} SimpleCDN
RewriteRule .* - [L]
RewriteRule (.*\.(gif|jpe?g|png))$ http://cdn.beerpla.net.lg1×3.simplecdn.net/$1 [R=301,L]
Is this something you think can be added? Some of my pages have 1MB of images and offloading those is essential but I really need to cut down the number of requests to my own server.