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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ