I have example.com/blog currently hosted on Amazon. I created a path based redirect to blog.example.com in Load Balancer Listner.

How can I put variables in the redirection or if we can use regex? For instance, example.com/blog/date/content -> blog.example.com/blog/content.

I can't use .htaccess because I'm trying to shutdown example.com/blog. Any help would be great! Thank you.

Thank you.

  • Are you using AWS CloudFront? Commented Dec 2, 2022 at 19:50
  • No, currently not using CloudFront. Commented Dec 3, 2022 at 21:46


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.