织梦网站开启绝对路径 软件下载专题地址出错

overme8个月前 (10-17)网页设计760
最近把织梦网站绝对路径开启了,导致织梦软件专题下载地址出错,不能正常下载软件。
织梦开启绝对路径后软件模型,下载地址填https://开头的,调用出来会显示  域名+https://网址,如下图所示:



分享解决方法:

1、打开 /plus/download.php 找到 大概在 147行

if(!preg_match(“#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i”, $link))

修改为:

if(!preg_match(“#^http:\/\/|^https:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i”, $link))

向下找,大概159行

#http  改成 (#http|https)

2、打开 /include/taglib/channel/softlinks.lib.php 找到 大概在 87行

if(!preg_match(“#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i”, $link))

修改为:

if(!preg_match(“#^http:\/\/|^https:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i”, $link))

向下找,大概在 109行

#http  改成 (#http|https)

好了到此为止,重新生成html页面后,软件下载地址已恢复正常。

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。