Title: Cloudflare redirect loop
Last modified: January 15, 2017

---

# Cloudflare redirect loop

 *  [theteafarm](https://wordpress.org/support/users/theteafarm/)
 * (@theteafarm)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/cloudflare-redirect-loop/)
 * Hello all,
 * I’ve been using flexible ssl from cloudfront for over a year and is quite happy
   with it. But i made a change to my server, and updated the cloudfront A record
   to point to my new server on AWS. But my flexible ssl is causing a redirect loop.
   I use the cloudflare flexible ssl plugin and have page rule setup for always 
   use https.
 * I did a redirect check and seems like it is going from http to https back to 
   http and back to https, etc. below is the results:
 * Theteafarm.com
 * HTTP/1.1 301 Moved Permanently
    Date: Sun, 15 Jan 2017 08:29:47 GMT Transfer-
   Encoding: chunked Connection: keep-alive Set-Cookie: __cfduid=d3d84b2bdfbbb1d7dbae38a210ba7cf861484468987;
   expires=Mon, 15-Jan-18 08:29:47 GMT; path=/; domain=.theteafarm.com; HttpOnly
   Location: [https://theteafarm.com/](https://theteafarm.com/) Server: cloudflare-
   nginx CF-RAY: 3217f646f72a0ec7-EWR
 * [https://theteafarm.com/](https://theteafarm.com/)
 * HTTP/1.1 302 Found
    Date: Sun, 15 Jan 2017 08:29:48 GMT Content-Type: text/html;
   charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Set-Cookie: __cfduid
   =d2aeceda3afc38b1e85120440ebb20d281484468988; expires=Mon, 15-Jan-18 08:29:48
   GMT; path=/; domain=.theteafarm.com; HttpOnly X-Powered-By: PHP/7.0.14 Location:
   [http://theteafarm.com/](http://theteafarm.com/) Server: cloudflare-nginx CF-
   RAY: 3217f64aaded21e6-EWR
 * Can someone chimp in on how to fix?
 * Thank you!

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

 *  Thread Starter [theteafarm](https://wordpress.org/support/users/theteafarm/)
 * (@theteafarm)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/cloudflare-redirect-loop/#post-8656422)
 * I resolved it.
 * I updated the wp-config file and that fixed it.
 *  [lhynn2172](https://wordpress.org/support/users/lhynn2172/)
 * (@lhynn2172)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/cloudflare-redirect-loop/#post-8889924)
 * Hi Theteafarm,
 * I’m having the same issue and it’s slowing down the server response time in my
   website.
    Would you mind sharing on how you resolved this issue by updating the
   wp-config file?
 * Thank you.

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

The topic ‘Cloudflare redirect loop’ is closed to new replies.

## Tags

 * [redirect loop](https://wordpress.org/support/topic-tag/redirect-loop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [lhynn2172](https://wordpress.org/support/users/lhynn2172/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/cloudflare-redirect-loop/#post-8889924)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
