如何使用A或CNAME记录将siteA重定向到siteB [英] How to redirect siteA to siteB with A or CNAME records

查看:181
本文介绍了如何使用A或CNAME记录将siteA重定向到siteB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个主机,我想将主机上的一个子域指向主机2上的一个子域:

 子域.hostone.com  - > subdomain.hosttwo.com 

我添加了一个CNAME记录来主持一个指向subdomain.hosttwo.com但是我所得到的只是一个 400错误请求错误。



任何人都可以看到我做错了什么?

解决方案

尝试将其更改为subdomain - > subdomain.hosttwo.com



CNAME 是某个域的别名,因此当您访问hostone.com的控制面板时,您不必将整个名称输入到 CNAME 别名



只要您收到的错误,您可以登录到subdomain.hostwo.com并检查日志?


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

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?

解决方案

Try changing it to "subdomain -> subdomain.hosttwo.com"

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.

As far as the error you are getting, can you log onto subdomain.hostwo.com and check the logs?

这篇关于如何使用A或CNAME记录将siteA重定向到siteB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆