Show other domain using DNS instead of iframe

时光怂恿深爱的人放手 提交于 2019-12-25 12:40:37

问题


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

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.

Thank you for your help!


回答1:


You can do that on DNS Level in two ways:

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.

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.

This can be done with Apache, Nginx or IIS.

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.

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.



来源:https://stackoverflow.com/questions/10513520/show-other-domain-using-dns-instead-of-iframe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!