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
gefragt vor einem Jahr557 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor einem Jahr
  • I tried this but it didn't work, I want to redirect traffic from www.mydomain.com to mydomain.com.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen