Learn how to redirect from www to non-www or from non-www to www in Amazon using Route 53 and S3 buckets.
This technique is the best for SEO friendly site-wide redirects. All the redirects are 301 permanent redirects, meaning that if someone chooses to link to your site as a www. site it will still go to the right page within the site and it will still pass the link juice onto the real page.
A lot of other great stuff on this channel, be sure to subscribe to see other great tutorials like this one.
Please note that this is different from SSL ALWAYS on, as this will add another redirect causing one additional avoidable redirect.