Azure CDN custom domain redirect cloudflare

C Z 96 Reputation points

Hi there,

We just migrated our media files of website from hosting server to Azure blob storage. We also added Azure CDN custom domain by following the direction of this page: cdn-map-content-to-custom-domain . We changed our domain name from to since www is now using by Azure CDN. However some users are still trying to use to visit our website and received an error message like this: 110343-%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE-20210629105216.png.

So is there anyway to make a redirect, let redirect to but do not redirect which is using by Azure CDN and blob storage? We are using cloudflare as DNS and Nginx.

Here is my cloudflare dns settings:
A ip_address DNSonly
CNAME www DNSonly

Thanks a lot

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,426 questions
Azure Content Delivery Network
0 comments No comments
{count} votes

Accepted answer
  1. C Z 96 Reputation points

    After few days straggling, I decide to change a direction and resolve the problem.

    1. change CNAME back to on DNS server.
    2. In Azure CDN profile, add a new custom domain and enable https
    3. install a WordPress plugin to update all my media files urls from to

    now my users could visit www without any issue and all my images and videos are displayed correctly.

    0 comments No comments

0 additional answers

Sort by: Most helpful