title: Forcing HTTPS with Azure CDN
body: <p>I’m using Azure CDN in front of a Storage Account. I’m wanting to serve everything via HTTPS only, so I’ve setup HTTPS on the custom domain and created a URL rewrite:</p>
  
  <p><a href="https://i.stack.imgur.com/rdHBh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rdHBh.png" alt="HTTPS rewrite rule"></a></p>
  
  <p>But the problem is that I end up at a URL like this:
  <a href="https://the-custom-domain/website/17/index.html" rel="noreferrer">https://the-custom-domain/website/17/index.html</a></p>
  
  <p>The <code>website/17/index.html</code> is the root content within the Storage Account, but I don’t know why it’s appending the container path before the filename. There’s also rewrite rule for static files (<a href="https://blog.lifeishao.com/2017/05/24/serving-your-static-sites-with-azure-blob-and-cdn" rel="noreferrer">https://blog.lifeishao.com/2017/05/24/serving-your-static-sites-with-azure-blob-and-cdn</a>).</p>
  
  <p>Any idea what’s wrong with the URL rewrite?</p>