如何使用 A 或 CNAME 记录将站点 A 重定向到站点 B [英] How to redirect siteA to siteB with A or CNAME records
问题描述
我有 2 台主机,我想将主机 1 上的子域指向主机 2 上的子域:
I have 2 hosts and I would like to point a subdomain on host one to a subdomain on host two:
subdomain.hostone.com --> subdomain.hosttwo.com
我添加了一个 CNAME 记录来托管一个指向 subdomain.hosttwo.com 的 CNAME 记录,但我得到的只是400 错误请求"错误.
I added a CNAME record to host one that points to subdomain.hosttwo.com but all I get is a '400 Bad Request' Error.
谁能看出我做错了什么?
Can anyone see what I'm doing wrong?
推荐答案
尝试将其更改为subdomain -> subdomain.hosttwo.com"
Try changing it to "subdomain -> subdomain.hosttwo.com"
CNAME
是某个域的别名,所以当你进入 hostone.com 的控制面板时,你不应该在 CNAME
别名.
The CNAME
is an alias for a certain domain, so when you go to the control panel for hostone.com, you shouldn't have to enter the whole name into the CNAME
alias.
就您遇到的错误而言,您可以登录 subdomain.hostwo.com 并查看日志吗?
As far as the error you are getting, can you log onto subdomain.hostwo.com and check the logs?
这篇关于如何使用 A 或 CNAME 记录将站点 A 重定向到站点 B的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!