Adding custom sub domain for react app hosted in AWS Amplify redirecting to the main domain


We wanted to test this new app in a test domain so we deployed the new version in AWS Amplify and we are able to run the app with the URL generated by amplify ( but when we are trying to setup a custom subdomain like ( the URL is redirecting us to our main website ( We follow all the processes according to the documentation, also we compare all the configuration with one of our working subdomains (

Enter image description here

asked 2 months ago207 views
1 Answer
Accepted Answer
profile picture
answered 2 months ago
profile picture
reviewed 2 months ago
profile picture
reviewed 2 months ago
  • Yes I have added I have uploaded the screenshot of the configuration you can check

  • I have tested removing the but its doesn't work

  • Looking at the image, you can see that the redirect is set, but when you deleted "", did you also cancel the redirect check button?

  • Name resolution is no longer possible with the "dig" command, have you changed any settings?

    ; <<>> DiG 9.16.1-Ubuntu <<>>
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40125
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
    ; EDNS: version: 0, flags:; udp: 4096
    ;                        IN      A
    ;; Query time: 749 msec
    ;; SERVER:
    ;; WHEN: Tue Mar 26 15:50:49 JST 2024
    ;; MSG SIZE  rcvd: 43

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions