2 Answers
- Newest
- Most votes
- Most comments
0
using route53 ist hosted zone ----> record---- > create record set --> their i am giving sub url and then enable alias --------> after alias to another record in this hosted zone ----> then providing the record ----> then save it
by doing this when i will access main record it should redirect to sub record and i should see 300 status code . but i am getting response from same main record not from sub record and my status code is 200
answered a year ago
Relevant content
- asked 2 years ago
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
I don't think the HTTP status code will be 300 because it's not an HTTP redirect. The settings you made are mapping between domains, so I don't think it's an HTTP redirect.
For example, if you are using Apache as your web server, you can configure the domain to be redirected by configuring it as follows. In the example below, if the domain "www.test.com" is accessed, it will be redirected to the domain "test.com".
If you are using ALB, you can also set up redirection by following the steps in the document below. https://repost.aws/knowledge-center/elb-redirect-to-another-domain-with-alb