Amazon AWS CDN


This plugin helps you setup your AWS CloudFront Distribution and serve static contents (Now supports WordPress Multisite setup). You can also use other CDNs which provides a custom CDN URL (E.G:

Special thanks to:


  • screenshot-1.jpg


Using the WordPress Plugin Search

  1. Navigate to the Add New sub-page under the Plugins admin page.

  2. Search for AWS CDN By WPAdmin.

  3. The plugin should be listed first in the search results.

  4. Click the Install Now link.

  5. Lastly click the Activate Plugin link to activate the plugin.

Uploading in WordPress Admin

  1. Download the plugin zip file and save it to your computer.

  2. Navigate to the Add New sub-page under the Plugins admin page.

  3. Click the Upload link.

  4. Select aws-cdn-by-wpadmin zip file from where you saved the zip file on your computer.

  5. Click the Install Now button.

  6. Lastly click the Activate Plugin link to activate the plugin.

Using FTP

  1. Download the plugin zip file and save it to your computer.

  2. Extract the aws-cdn-by-wpadmin zip file.

  3. Create a new directory named aws-cdn-by-wpadmin directory in the ../wp-content/plugins/ directory.

  4. Upload the files from the folder extracted in Step 2.

  5. Activate the plugin on the Plugins admin page.


CORS Error: No Access-Control-Allow-Origin header is present on the requested resource


Add the following in your .htaccess file, immediately under ‘# END WordPress’

<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css)$">
<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Origin "*"


Add something like this to your vhost config

location ~* \.(eot|otf|ttf|woff|woff2)$ {
    add_header Access-Control-Allow-Origin *;

Refer to this article for more info:

How To Create An AWS User

Follow the steps in this article

Got a Question?

Send me an email


Good Plugin

The plugin works perfectly on my website, and it speeds up the loading time of the site.

Really simple, light-weight plugin that works like a charm !!!

Really simple and works like a charm. Also very light weight Can't thank the author enough 🙂 I use Nginx and fastcgi cache for caching. Before this I was forced to use heavy bloated plugins like wp-super cache or autoptimize just to deliver static content from cloudfront. Thanks to this plugin I can keep my plugins to bare minimum. Once again Thank you very much for the amazing plugin 🙂

A half-finished plugin

A plugin that is halfway, still lacks many configuration options to be considered by sites with many images, also need to include options to determine what content go through the cdn and what not, in a more intuitive. If they improve it in the future, it could help them improve my score, for the time being I have eliminated it.
Read all 29 reviews

Contributors & Developers

“Amazon AWS CDN” is open source software. The following people have contributed to this plugin.


Translate “Amazon AWS CDN” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


Fixed the “error while validating the input provided for the CreateDistribution operation: [DistributionConfig][ViewerCertificate][ACMCertificateArn]” bug.

Added the option to specify location for sites hosted in a sub-folder.

The plugin can now requests a public SSL certificate from Amazon Certificate Manager, if you intend to use cdn.YourAwesome.Site. You can also exclude particular files to avoid CORS issue.

Disabled cdn domain names temporarily, to avoid the ‘InvalidViewerCertificate’ error.

Switched from SERVER_NAME to HTTP_HOST.

Existing users can now use the ‘Modify’ button to add CORS headers to AWS Cloudfront.

Minor tweaks and updates.

CORS Issue on HTTPS Site Fixed.

Minor tweaks and updates.

Minor tweaks and updates.

As reported on
Added support to include both and

Tested with WordPress 5.0 added wp-includes to CDN.

Fixed the Error loading stylesheet: An unknown error has occurred (805303f4) error when loading stylesheets in sitemaps.

minor fixes to lock down access.

Added feature to modify the cloudfront distribution & create per site distribution for Multi-site setup

Added ‘Send Debug Log to Developer’ button in case the plugin fails.

Minor tweaks and updates.


Fixed the POST resulted in a 404 Not Found issue


Tested with WordPress Multisite


Fixed the duplicate \’cdn.\’ in script and style tags when using custom cdn domain name

Tested with the latest version of WordPress

Tested with the latest version of WordPress


Updated AWS Phar and also added min/max Cache time fields


Fixed Object not found issue.


Fixed issue with GuzzleHttp\Psr7\ conflict.


Updated version for WordPress 4.5.1.


Invalidation not required after updating Stylesheet.


Now rewrites all media (except logo)