App runner linked custom domain not working when I type www in browser

0

I have successfully linked my app runner instance to the root my domain (mydomain.com) and everything is working fine .. However when I type www.mydomain.com I get a 404. How can I route traffic from www to mydomain?? I have tried creating an Alias record but its not working.

ThaDev
posta un anno fa557 visualizzazioni
1 Risposta
0

Hi, You could look in this article https://repost.aws/knowledge-center/redirect-domain-route-53.

The solution typically uses S3 bucket to perform redirection.

Thought working, another approach I tried with my own hands was to use CloudFront functions: https://medium.com/@alatech/domain-redirection-with-cloudfront-functions-32a6732d589d

Depending on traffic and cost appetite, you can decide what is the best approach to redirect from apex to another domain based on above articles.

I hope it helps ;)

profile picture
ESPERTO
con risposta un anno fa
  • I tried this but it didn't work, I want to redirect traffic from www.mydomain.com to mydomain.com.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande