How to redirect domain/oldpath to domain name In CloudFront S3 bucket hosting
I want to redirect domain name with oldpath to domain name in AWS CloudFront S3 bucket.
Example: if user enter url example.com/category then it should redirect to example.com.