Easy Implementation with CloudFront Functions: Use Cases for Basic Authentication and Redirects

You can easily implement both Basic authentication and redirects without using Lambda@Edge.