Jump to content
Peter Knight

Amazon CloudFront - multiple redirect issues

Recommended Posts

I'm using Amazon CloudFront for the first time and have everything setup properly (almost).

When I run my URL through a GTMetrix speed test, I repeatedly get a 'Minimise redirects' advisory notice.

Below is just a sample of the results.

It looks like my /site/ assets are successfully delivered via the CDN URL but are then are redirected back to the source css/img/js on my server.

Obviously that defeats the purpose of a CDN 😐

Any ideas on what might be the cause of this?

My .htaccess file is the default one supplied with Processwire and I'm running

  • ProCache v3.1.8
  • ProcessWire 3.0.148 © 2020



Have also attached  a screen grab of the Cloudfront setup:



BTW happy to DM the actual URL to interested parties. Just can't add it here.

Share this post

Link to post
Share on other sites

This had happened to me once when I had set  pw's .htaccess to automatically redirect to "www", then I had to update the origin domain name on AWS to "www.domain.com". 

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...