Redirect www to non-www in CloudFront using Lambda@Edge

Every website should be accessible by using addresses like example.com and www.example.com. On the other hand you should never have a duplicate content by serving the same content on different URLs. Because of these UX and SEO principles it’s best practice to create a permanent redirection from www.example.com to example.com or vice versa. When hosting a static website with AWS S3 and … Read more