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
已提問 1 年前檢視次數 557 次
1 個回答
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
專家
已回答 1 年前
  • I tried this but it didn't work, I want to redirect traffic from www.mydomain.com to mydomain.com.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南