getting issue while redirecting 301 to with slash and continue for path also using ECS with ELB for deploy


I am using ECS service and using ELB to deploy my site and i have set A type record with ELB ( and CNAME record for and then using rules to redirect from to

but now issue is that we also want to redirect SLASH after to

this is my redirection rule Redirect to HTTPS://{path}?#{query}

Status code: HTTP_301

i want to add SLASH at the

1 Answer

Create a rule condition in your ALB listener:

If HTTP Host Header is -> Redirect to HTTPS://{path}?#{query}

profile pictureAWS
answered 2 months ago
profile picture
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions