超链接到子域 [英] Hyperlinks to subdomain

查看:79
本文介绍了超链接到子域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我最近创建了一个子域名。我现在面临的问题是从 www.domain.com/ 到服务器上的sub.domain.com/的链接正在链接如 www.domain.com/sub.domain.com/ 可能是什么原因以及如何解决这个问题?我可以做什么,以便我在服务器上以sub.domain.com链接我发布和发布的链接?
谢谢你,
Navaid

Hello,
I recently created a subdomain. The problem I am facing now is that the links from www.domain.com/ to sub.domain.com/ on the server are linking as www.domain.com/sub.domain.com/ What could be the reason and how can I solve this problem? What can I do so that the links that I put up and publish as sub.domain.com link as sub.domain.com on the server?
Thank you,
Navaid

推荐答案

如果您输入的是"sub.domain.com"。作为超链接文本,这不是完全限定的链接。如果URL不是完全限定的,我相信Expression Web会将其解释为相对URL,这意味着相对于您当前的页面,该页面位于"http://www.domain.com"中。
尝试添加"http://"在您键入子域URL时,要让EW停止将URL解释为相对URL。
If you are typing "sub.domain.com" as the hyperlink text, that is not a fully qualified link. When a URL is not fully qualified, I believe Expression Web interprets it as a relative URL, which means relative to your current page, which sits in "http://www.domain.com".

Try adding the "http://" to your subdomain URLs when you type them, to get EW to stop interpreting the URL as relative.


这篇关于超链接到子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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