Cloudfront SSL issue on wordpress – Too many redirects

  • Unknown's avatar

    Let me explain our architecture first.

    http://www.example.com CNAME points to cloudfront distribution (d3xxxxx.cloudfront.net)

    Origin for the cloudfront: route.example.com. We had select **Whitelist Headers ** as HOST in cloudfront distribution

    SSL installed on Cloudfront for the domain : http://www.example.com

    route.domain.com points to Google cloud server which has apache webserver and wordpress installed.

    Issue 1. When we hit the URL http://www.example.com without applying SSL certificate, the home page loads http://www.example.com however internal links redirecting to ‘route.example.com’ instead of http://www.example.com. We believe its because of siteurl on wordpress uses route.example.com

    Issue 2. After applying SSL certificate on cloudfront, when we hit the URL ‘https://www.example.com’, the website ended up too many redirects

    We have tried the URL ‘WordPress + CloudFront Flexible SSL ends up in redirect loop (https)’ and it doesn’t seems to be helping us.

    Goal: We want http://www.example.com to use cloudfront distribution along with SSL and doesnt want to expose webserver to enduser. The origin of the cloudfront should be route.example.com which will have wordpress application.

    Any help would be appreciated.

  • Unknown's avatar

    Hello,

    Since it sounds like your site is hosted on Google cloud server, the support forums you would want for WordPress issues is https://wordpress.org/support/forums/ as they will be more knowledgeable about self-hosted WordPress installations (.org forums for the open source software vs .com forums for when that same software is also hosted by WordPress).

    This forum is focused on sites hosted on WordPressdotcom.

    Hope they have an answer for you!

  • The topic ‘Cloudfront SSL issue on wordpress – Too many redirects’ is closed to new replies.