2 個答案
- 最新
- 最多得票
- 最多評論
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
已回答 5 個月前
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
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