getting issue while redirecting 301 xyz.com/ab to www.xyz.com/ab from load balancer using ECS service

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 then issue is that it is not redirecting xyz.com/ab to www.xyz.com/ab

this is my rule IF host is xyz.com THEN redirect to https://www.xyz.com/

and the thing is path is no fixed here.

2개 답변
1
수락된 답변

You need to change the redirect to take into account the path and query. Please try the following

Setting the Full URL to be https://www.xyz.com:#{port}/#{path}?#{query} for the redirected url.

profile picture
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전
profile picture
전문가
검토됨 2달 전
0

Hello,

The rule should be something like this Redirect to https://xyz.com:443/#{path}?#{query}

Please check this Knowledge Center article describing "How can I use an Application Load Balancer to redirect one domain to another?"

profile pictureAWS
답변함 2달 전
profile picture
전문가
검토됨 2달 전

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

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

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

관련 콘텐츠