Share via

I want to redirect my domain to my static web app on Azure

Younes Dilali 0 Reputation points
2024-10-14T15:53:08.7566667+00:00

I add a custom domain to my static web app on Azure. Azure generated a value type TXT that I needed to add on my domain provider side. It has been 24 hours that I did that, but not able to activate the redirection from my domain to my Azure static web app.

Can you help me?

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.

{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 25,251 Reputation points Microsoft Employee Moderator
    2024-10-15T07:53:19.21+00:00

    @Younes Dilali Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    Ideally, when you request the custom domain all the requests will be redirected to the default/root of the static website based on the type of domain whether apex or subdomain and also DNS records that you add in the DNS zones of the domain.

    Are you adding apex domain or subdomain to the static webapps?

    • As mentioned here in this documentation if you are adding subdomain (like www.example.com) then you need to add CNAME record.
    • If you are adding Apex domain as custom domain then you need to add CNAME or TXT and ALIAS records in the DNS Zone.

    You can also refer to this documentation on how to add the custom domain in static webapps.

    Hope this helps let me know if you have any further question on this.

    0 comments No comments

Your answer

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