Host images only on CDN

I’ve never heard of a CDN that replaces your servers storage completely, only mirroring. However, I know (as I’ve done this on multiple installs) you can offload your current and future media library items to AWS S3 with a plugin like Media Cloud. Media items get off of your pricy and limited hosting server, and … Read more

Is it possible to host a WordPress site entirely on Cloudfront?

It depends what you mean, entirely on Cloudfront. Cloudfront is a CDN only. It can’t run any server side scripting environments (PHP or MySQL), it therefore isn’t possible to host a wordpress site entirely with Cloudfront. You could alternatively use Cloudfront to host your images to improve speed. The closest way to host a wordpress … Read more

Can a WordPress blog be entirely hosted on a CDN if cached?

Yes, making static version of WP blog is definite possibility. I would advise against using caching plugins for that — it’s not their purpose and a lot of their functionality tends to depend on elaborate rewrite rules, which you won’t be able to replicate on CDN. There are dedicated WP solutions (none that I have … Read more

Speed up WordPress

I was in a similar situation recently and started using W3 Total Cache too. I’m not sure what settings you have at the moment, but it’s worth experimenting a bit if you can to see that you’re really using W3 Total Cache to the max For example, I originally only had Page Cache and Browser … Read more

Change WordPress’ media upload URL?

It was actually easier than I thought. function route_uploads_past_cdn( $url, $path ) { $upload_paths = array( ‘async-upload.php’, ‘media-new.php’ ); if( !in_array( $path, $upload_paths ) ) { return $url; } return str_replace(‘www.’, ”, $url); } add_filter( ‘admin_url’, ‘pew_route_uploads_past_cdn’, 10, 2 ); The URL for uploading media would normally be http://www.example.com/wp-admin/media-new.php would now be http://example.com/wp-admin/media-new.php since the … Read more

Change Image URL to a CDN

Since the major adoption of Responsive Images and the addition of new srcset attribute to the <img> element. WordPress has to evolve too. WordPress 4.4 added the responsive images feature. If you inspect the src attribute it might point to the CDN, however, you still need to consider the srcset attribute which might still be … Read more