How to redirect www.<staticsite>.com to https://<staticsite>.com

Rohan Sapkal 0 Reputation points
2025-01-25T11:59:11.7266667+00:00

Hi Everyone,

I have successfully deployed an Azure Static Website and configured a custom domain. After setting it up, I'm able to access the site using https://.com, but when I try www..com, I receive a 404 Not Found error.

I’ve already made the necessary updates to the DNS A and CNAME records.

Could someone please help me figure out if I’ve missed any configuration steps?

Thanks in advance for your assistance.

Best regards, Rohan Sapkal


Let me know if you'd like any further adjustments!

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,065 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 33,775 Reputation points MVP
    2025-01-25T12:06:21.4633333+00:00

    Follow https://learn.microsoft.com/en-us/azure/static-web-apps/apex-domain-external


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


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.