getting issue while redirecting 301 xyz.com to www.xyz.com/ with slash and continue for path also using ECS with ELB for deploy

0

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

but now issue is that we also want to redirect SLASH after xyz.com to www.xyz.com/

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

Status code: HTTP_301

i want to add SLASH at the www.xyz.com/

1개 답변
1

Create a rule condition in your ALB listener:

If HTTP Host Header is xyz.com -> Redirect to HTTPS://www.xyz.com:443/#{path}?#{query}

AWS
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠