使用DNS而不是iframe显示其他域 [英] Show other domain using DNS instead of iframe

查看:54
本文介绍了使用DNS而不是iframe显示其他域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在不同的提供商处购买了2个域名,我希望 http://aaaaa.com 显示 http://bbbbb.com/aaaaa

I got 2 domains bought at diferent providers and I would like http://aaaaa.com to show http://bbbbb.com/aaaaa

仅使用DNS可能吗?我必须将域转移到具有 http://bbbb.com 域的托管服务提供商吗?我真的不想使用重定向或iframe.

Is this possible using only DNS? must I transfer the domain to my hosting provider that has the http://bbbb.com domain? I really don't want to use a redirection or iframe.

谢谢您的帮助!

推荐答案

您可以通过两种方式在DNS级别上做到这一点:

You can do that on DNS Level in two ways:

根据提供者的不同,您可以将 http://DomainA.com/重定向至带有 http://DomainB/Folder 现在,这是过早的方法,特别是在SEO对您来说很重要的情况下.

Depending on your Provider you can make http://DomainA.com/ redirect with masking to http://DomainB/Folder now this is premature way of doing it specially if SEO matters to you.

如果您拥有自己的服务器,或者可以在服务器上添加虚拟目录,则可以将DomainA指向该服务器,并使 http://将DomainB/文件夹位置作为起点.

If you have your own servers or you can add Virtual Directory on the server you can point DomainA to this server and make http://DomainB/Folder location as start point.

这可以通过Apache,Nginx或IIS完成.

This can be done with Apache, Nginx or IIS.

请问您能为我提供有关哪种操作系统和哪种托管的更多解释,以便我可以帮助您吗?还有什么样的应用程序,因为如果您使用.net有点不同,那么使用普通的PHP或HTML或wordpress ...您将需要添加虚拟目录来实现这一点.

Please can you give me more explanations on what OS and what kind of hosting you have so i can help you with this? And also what kind of application because if your using .net its a bit different then using normal PHP or HTML or wordpress... U will need to add Virtual Directory to achieve this.

如果您使用共享托管并拥有Apache Web服务器,最简单的方法是:.htaccess和Apache也可以处理这种重定向. http://www.site5.com/blog/apache/htaccess/redirect-to-blog/20090427/

If your using shared hosting and have Apache web-server the easiest way to do it is so: .htaccess and Apache also can handle such redirection. http://www.site5.com/blog/apache/htaccess/redirect-to-blog/20090427/

关于,希望对您有所帮助.

Regards and hope this helps.

这篇关于使用DNS而不是iframe显示其他域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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