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
asked a year ago512 views
1 Answer
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
EXPERT
answered a year ago
  • I tried this but it didn't work, I want to redirect traffic from www.mydomain.com to mydomain.com.

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