将链接指向某个服务器 [英] Point a link to a certain server
本文介绍了将链接指向某个服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的网站上有一个PDF链接,该文件的某些文件在一台服务器上,而另一些文件在另一台服务器上.如何将链接指向两个链接之一?我的代码如下:
I have a link to a PDF on my website, which has some of its files on one server and some of them on another. How can I point the link to one of the two? My code looks like this:
<a href="/pdf/testing.pdf">Click here</a>
推荐答案
使用原义URL.
例如:
<a href="http://server-one.domain.tld/pdf/testing.pdf">Click here</a>
或者...
<a href="http://server-two.domain.tld/pdf/testing.pdf">Click here</a>
您需要在其中提供FQDN: http://en.wikipedia.org/wiki/Fully_qualified_domain_name
You need FQDN's in there: http://en.wikipedia.org/wiki/Fully_qualified_domain_name
以下是为您准备的文章: http://reference.sitepoint.com/html/a/href
Here is an article for you: http://reference.sitepoint.com/html/a/href
这篇关于将链接指向某个服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文