Having Issues to Redirect HTTP to HTTPS and Redirect Root to www"rules under CDN Profile

Nicen 1 Reputation point
2020-08-17T19:50:49.923+00:00

I have a CDN profile configured and I have added two custom domains to it: www.rootdomain.com & rootdomain.com and enabled HTTPS for both. Https://www.rootdomain.com is working fine with no issues but rootdomain.com although I have done all of the below steps:

  • Set up a CNAME “cdnverify.<yourdomain>” to “cdnverify.<endpoint>.azureedge.net”.
  • Enabled the HTTPS feature and waited for the HTTPS feature with an SSL certificate to be processed
  • Changed the Azure CDN Profile from the Standard to the Premium Verizon in order to use the Rule Engine feature
  • Configured "Redirect HTTP to HTTPS" and "Redirect Root to www" rules under CDN Profile > Manage > HTTP Large > Rules Engine

And after doing all of the above I'm getting the error "HTTP 404 NOT FOUND" if I tried to visit http://www.rootdomain.com and I get google search results when I try to browse rootdomain.com

Can you please help to identify the problem and solve it.

Azure Content Delivery Network
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. suvasara-MSFT 10,026 Reputation points
    2020-08-18T08:10:09.3+00:00

    Greetings,

    Azure CDN don't support CDN Managed SSL Certificates for Apex/Root Domain. You must use Bring you own certificate incase if you are using a root or apex domain here.
    You can upvote this feature here in this feedback section for its future availability.


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    0 comments No comments

  2. Nicen 1 Reputation point
    2020-08-18T12:26:57.42+00:00

    For the root domain, I have added my cert.

    0 comments No comments

  3. K Sheahan Kularathne 431 Reputation points
    2020-09-16T11:53:02.013+00:00

    Look like you have configured your redirection incorrectly. Please tell me what is your redirection requirement, HTTP to HTTPS or more?

    0 comments No comments

  4. K Sheahan Kularathne 431 Reputation points
    2020-09-16T12:06:43.48+00:00

    Can you share your Rules?

    0 comments No comments