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
  • screenshot-2.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


22. Februar 2020
Easy to setup. Works great and added lot's of extra points to my Google Pagespeed score.
18. Februar 2020
Plugin works perfect, is rather easy to install and configure. The support is great. The developer assisted me rather quickly with timely follow-up to address a small issue related to icons not loading from the CDN (not a plugin fault). Great stuff and very well worth the install. Donation made!
9. Januar 2020
I wanted to get my static content on AWS Cloudfront without having to use a bloated heavyweight plugin. I just wanted a plugin where I enter my AWS Keys, my CDN domain name, nothing more or less. This plugin does this. There was one tweak needed on cloudfront > edit behavior > Whitelist Headers, I added "Origin" to fix the CORS for fonts and icons. If you want a higher GTmetrix score and faster page loads, this plugin and AWS cloudfront will do it.
23. Oktober 2019
I've always had such a respect for the guys who managed to install a CDN like AWS. Today, I found this plugin, installed it, followed the step by step instructions, and voilà! After 1.5 hours of discoveries, my site which had loading times of 2-4 seconds at home in Europe, and about 6-18s in Asia or South America, loads within 1.35s-2.4s now. That's a huge boost. Thank you! For those who want easy access to the fairly priced and internationally working CDN by Amazon AWS, I recommend this plugin.
Lies alle 37 Rezensionen

Mitwirkende & Entwickler

„Amazon AWS CDN“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:


Übersetze „Amazon AWS CDN“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.


Fixed the issue with broken customize theme when the plugin was activated.

Fixed ignored files list.

Subtle donation Request.

Added option to exclude all Script & Stylesheet files.

Multi-site Domain list fixed on super-admin page.

Admin notice was being displayed on pages other than the intended pages, this has been fixed.

Added the filter to convert image srcset URLs to CDN URLs.

Tweaked and code cleaned for better performance..

The plugin now checks if the site is hosted in a sub-folder and populates the domain field.

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)