site is not working without www

Cixcent Team 0 Reputation points
2024-03-29T10:13:56.0633333+00:00

Hi,

Our website domain provider is from wix but we have hosted site as static website using Azure CDN and blob storage.

Site works properly when we use with www, but without www it does not get opened. Wix does not allow @ pointing to cdn url only it allows with www.
We have also applied rules engine for redirecting without www url to point at working url but still doesn't work.

Looking for some suggestions.

Thanks

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,542 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anand Prakash Yadav 7,860 Reputation points Microsoft External Staff
    2024-03-29T12:04:08.3133333+00:00

    Hello Cixcent Team,

    Thank you for posting your query here!

    Can you please check with the following rules:

    User's image

    User's image

    Now user is forwarded from example.com to https://www.example.com, but if somebody will type https://example.com he will still see an error. The solution to this could be buy SSL cert, because Azure CDN doesn't allow CDN Managed SSL for apex domain. https://learn.microsoft.com/en-us/azure/cdn/cdn-custom-ssl?tabs=option-1-default-enable-https-with-a-cdn-managed-certificate#prerequisites

    Source: https://stackoverflow.com/questions/62612833/azure-cdn-how-to-redirect-from-root-domain-to-www-some-rules-from-rules-engin

    Similar posts for reference: https://stackoverflow.com/questions/73323058/redirect-azure-static-web-app-from-naked-domain-to-www

    https://learn.microsoft.com/en-us/answers/questions/1414399/azure-static-web-app-how-to-set-up-custom-domain-r

    Do let us know if you have any further queries. I’m happy to assist you further.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

  2. Cixcent Team 0 Reputation points
    2024-03-30T07:01:35.61+00:00

    Hello,

    Thanks for your post. We have moved from Azure CDN to Azure Static Web App and followed as mentioned below

    https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain-external?source=recommendations

    customdomain.PNG

    Problem here in last step where need to update alias (cname) record in domain provider(wix) but wix does not allow to update as its not allowing @ or blank with value of static web app url.

    Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.