Title: WordPress and CloudFront
Last modified: September 4, 2025

---

# WordPress and CloudFront

 *  [cguanaja](https://wordpress.org/support/users/cguanaja/)
 * (@cguanaja)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/wordpress-and-cloudfront/)
 * I’m having issues with policies that need to be set in place with CloudFront.
   I was able to access WordPress without any problem and do anything that was required
   on the site, but now that site is behind ClodFront and I try to edit/create a
   page in WordPress this doesn’t work anymore (getting errors on the console when
   inspecting).
 * I’ve set the origin server which is up and running (same server where site was
   running before CloudFront was set in place). I’ve added the below behavior patterns
   and this something that I may need input with so this works with no problem:
 *     ```wp-block-code
       0/wp-admin*Redirect HTTP to HTTPSManaged-CachingDisabled (Cache policy name)Managed-AllViewer (Origin request policy name)-1/*Redirect HTTP to HTTPSManaged-CachingDisabledManaged-AllViewer-3Default (*)Redirect HTTP to HTTPSCachePolicy-With-Host-HeaderManaged-AllViewer 
       ```
   
 * I’m sure this has been done before (enabling CloudFront for a WordPress site 
   and be able to edit anything on the site with no problem). Any custom policy 
   that needs to be created? I’ve created one custom policy that includes the “Host”
   headers (CachePolicy-With-Host-Header) and is part of the default behavior pattern.
   
   I’ll appreciate the input so I can get this working – thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/wordpress-and-cloudfront/#post-18628427)
 * If you have any questions about Cloudflare, I would recommend contacting their
   support team: [https://www.support.cloudflare.com](https://www.support.cloudflare.com)
 * There is also a guide here: [https://kinsta.com/knowledgebase/install-cloudflare/](https://kinsta.com/knowledgebase/install-cloudflare/)
 *  [surviving404](https://wordpress.org/support/users/surviving404/)
 * (@surviving404)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/wordpress-and-cloudfront/#post-18628487)
 * Hey,
 * Cloudfront behaviour will need path pattern set for `/wp-content/*` & `/wp-login.
   php` & `/wp-includes/*` also along with the one ones you have, and also if you
   plan to add some contact form on your site you will have to add that page path
   also in behaviour pattern.
 * This video [https://www.youtube.com/watch?v=-EXS9M6yMcA](https://www.youtube.com/watch?v=-EXS9M6yMcA)
   
   and this blog [https://aws.amazon.com/blogs/startups/how-to-accelerate-your-wordpress-site-with-amazon-cloudfront/](https://aws.amazon.com/blogs/startups/how-to-accelerate-your-wordpress-site-with-amazon-cloudfront/)
   on AWS docs will help you to set those up.
 * Do reach out if you face more problem(s) since it is a tedious process. 🙂
 * S.D.
 *  Thread Starter [cguanaja](https://wordpress.org/support/users/cguanaja/)
 * (@cguanaja)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/wordpress-and-cloudfront/#post-18632899)
 * Thanks for the input [@surviving404](https://wordpress.org/support/users/surviving404/)–
   added those additional behaviors you suggested but I’m still experiencing issues
   when going to plugins and trying to change basic settings – whenever I put the
   site out of cloudfront it works just fine (I can do same changes that I have 
   issues when via cloudfront) – all issues start to arise when I put the site behind
   cloudfront – checked the video shared and although outdated it covers what’s 
   already completed on the cloudfront side – thanks so much for the input.
 * Do you have a wordpress working behind cloudfront? What else might be causing
   these issues?
 * Thanks much.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress and CloudFront’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [cguanaja](https://wordpress.org/support/users/cguanaja/)
 * Last activity: [9 months, 1 week ago](https://wordpress.org/support/topic/wordpress-and-cloudfront/#post-18632899)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
