Share via

redirect https://botkids.live to https://www.botkids.live in Static Web App

Prince Gupta 0 Reputation points
2023-06-08T04:47:51.7266667+00:00

Hi, I am Prince Gupta

Recently i have hosted my website on Microsoft Azure Static Web App and in there i have given a custom domain of https://www.botkids.live and i am facing an error when i go to the https://botkids.live it gives me an error it also don't redirect to https://www.botkids.live and when i go to the https://www.botkids.live my website opens what the issue i am also not getting any option to redirect to www like in blogger and there is also no option to redirect from domain registrar so Please help me to redirect my website https://botkids.live to https://www.botkids.live please reply me as soon as possible.

Azure Static Web Apps
Azure Static Web Apps

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


2 answers

Sort by: Most helpful
  1. Ajay Kumar N 28,266 Reputation points Microsoft Employee Moderator
    2023-06-09T06:17:52.82+00:00

    It looks like the DNS records are not found currently.

    https://mxtoolbox.com/SuperTool.aspx?action=a%3abotkids.live&run=toolpage

    User's image

     

    After you have the DNS records as Dillon Silzer pointed out, from Azure Portal, you may try to set the default domain.

    When you designate a custom domain as your app's default domain, requests to other domains are automatically redirected to the default domain. I’m unsure if you have referred to the doc that I shared above.

    Try setting https://www.botkids.live as your default domain, by following the steps below.

    1.    With your static web app opened in the Azure portal, select Custom domains in the menu.

    2.    Select the custom domain you want to configure as the default domain.
    (www.botkids.live) – if it’s available ( as I mentioned above, please ensure the DNS are added)

    3.    Select Set default.

    User's image

    Please check the doc steps outlined  -Set up a custom domain in Azure Static Web Apps  -Since DNS settings need to propagate, this process can take up to an hour or longer to complete.

    Additionally, you may review diagnostic info, for some pointers:

    From the Azure portal, go to your static web app.

    Select Diagnose and solve problems.

    From the diagnostics window you can filter diagnostic categories (e.g Domain) or select 'Configuration and Management'.

    User's image

    Was this answer helpful?


  2. Dillon Silzer 60,931 Reputation points
    2023-06-08T06:01:50.7666667+00:00

    Just from a DNS Lookup I am seeing the following results:

    https://mxtoolbox.com/SuperTool.aspx?action=a%3abotkids.live&run=toolpage

    User's image

    Your DNS (A Record) is set up to go to an IP address provided above, while your www is point to (a CNAME):

    User's image

    However, you cannot just delete your A record and replace (botkids.live) to a CNAME and point it to the same destination (as this is your root domain). You will need something on the other side of your root domain that redirects you to www.


    If this is helpful please accept answer.

    Was this answer helpful?


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.