織夢dedecms綁定二級域名導致圖片路徑不對怎么辦?
打開 include/extend.func.php 文件
在此文件中增加如下函數:
function replaceurl($newurl){$newurl=str_replace(‘src="/uploads/allimg/’,’http://你的域名/uploads/allimg/’,$newurl);return $newurl;}調用文章正文內容的標簽
{dede:field.body/}需要改為
{dede:field.body function=’replaceurl(@me)’/}以上就是織夢dedecms綁定二級域名導致圖片路徑不對怎么辦的全部內容,希望對大家的學習和解決疑問有所幫助,也希望大家多多支持武林網。新聞熱點
疑難解答