internet
HTTP to HTTPS Redirect on Azure CDN
There are some pretty good instructions by Microsoft on how to do a HTTP to HTTPS redirect with the Verizon CDN but what they don’t document is that you can do the same thing with the Microsoft CDN.
You’ll want to setup something like this on your CDN Rules Engine Microsoft Endpoint:
Go into your CDN Endpoint, Rules engine.
Click “Add rule”. Give it a sensible Name like “HTTP2HTTPS”.
Then click on “Add Condition”, “Request Protocol”, in the Operator drop down select “Equals” and then in Value select “HTTP”.
Then click on “Add action”, “URL Redirect”. In the Typr drop down select “Moved (301)”, Protocol select “HTTPS”, in the Hostname you can leave it blank of fill it in with your hostname.
Job done.
No Comment