如何取消屏蔽从被域屏蔽的站点到外部站点的链接? [英] How do I unmask a link from my domain masked site to an external site?

查看:132
本文介绍了如何取消屏蔽从被域屏蔽的站点到外部站点的链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注册了域名www.a.com 然后,我通过屏蔽(使用GoDaddy)将流量从www.a.com转发到www.really.long.url.com,因此用户在访问我的网站时只会在其地址栏中看到www.a.com. 问题是,如果用户在我的网站上单击www.google.com的链接,他们将被定向到Google,但其地址栏仍显示为www.a.com.

I registered domain www.a.com I then forwarded with masking (using GoDaddy) traffic from www.a.com to www.really.long.url.com, so users will only see www.a.com in their address bar when visiting my site. The problem, is that if a user clicks a link to www.google.com while on my website, they get directed to Google, but their address bar still reads www.a.com.

如何为外部链接禁用此域掩码?

How can I disable this domain masking for external links?

推荐答案

最好的答案是不要使用域掩码",因为它有很多缺点,包括:

Best answer would be "don't use domain masking" because it has many drawbacks including:

  • 您遇到的问题-当用户通过指向外部网站的链接离开您的网站时,地址栏仍会显示您的域.
  • 您自己网站中的不同页面也不会更改地址栏,因此用户无法为您网站中的各个页面添加书签
  • 您的收藏夹图标不起作用
  • 搜索引擎不会将您的内容编入索引,就像它属于a.com一样,因为它不属于-它仍由really.long.url.com
  • 提供
  • 由您的网站发布的任何RSS feed都不会在支持此功能的浏览器上显示在地址栏中
  • The problem you have - when users leave your site via links to external sites the address bar still shows your domain.
  • Different pages within your own site don't change the address bar either, so user's can't bookmark individual pages of your site
  • Your favicon won't work
  • Search engines will not index your content as if it belonged to a.com, because it doesn't - it's still being served by really.long.url.com
  • Any RSS feeds advertised by your site will not show up in the address bar on browsers that support this

为避免这些弊端,应为a.com配置DNS,以便它和www CNAME实际上指向您的Web服务器,并且可以直接从a.com提供服务.

To avoid these drawbacks, you should configure the DNS for a.com so it and the www CNAME are actually pointed at your webserver, and your website can be served from a.com directly.

话虽如此,为解决您提出的问题,应更改从域屏蔽站点内部到外部站点的链接,以使用不推荐使用的target="_top"属性.这突破了GoDaddy(和其他公司)用于实现不太聪明的域屏蔽"的不可见框架集. http://www.a.com/的来源基本上是这样的:

Having said that, to solve the question you asked, links to external sites from within a domain masked site should be changed to use the deprecated target="_top" attribute. This breaks out of the invisible frameset that GoDaddy (and others) use to implement the not-very-clever "domain masking". The source of http://www.a.com/ basically looks something like this:

<frameset rows="100%,*" border="0">
  <frame src="http://www.really.long.url.com" frameborder="0" />
</frameset>

这篇关于如何取消屏蔽从被域屏蔽的站点到外部站点的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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