本地硬盘链接坏了

时间:2013-07-29 08:55:30

标签: wordpress hyperlink

我遇到了硬盘链接和wordpress的问题。 在Intranet Web应用程序中,存在目标文件位于硬盘驱动器上的超链接。 例如:

<a href="file:///c:/file.xls">target hardrive link, click to open </a>

我尝试添加文件协议wp-includes / formatting.php,但这没有效果:

$protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn','file');

当我点击链接时,没有任何反应; 有人可以帮帮我吗? 问候, 本

1 个答案:

答案 0 :(得分:0)

您使用的是Mozilla吗? 如果是这样试试......

 file://///servername/share/file.ext

http://kb.mozillazine.org/Firefox_%3a_Issues_%3a_Links_to_Local_Pages_Don%27t_Work

如果这不起作用,这是我找到的另一个例子。

https://superuser.com/questions/103026/open-a-direct-file-on-the-hard-drive-from-firefox-file