織夢后臺刪除文章同時刪除手機站靜態文件織夢
導讀:織夢技巧織夢技巧適用于那些做了手機站生成靜態的同學,織夢后臺刪除文章同時刪除手機站靜態文件 比如 電腦站文件路徑是:/dapan/20181102/50757.html 手機站個業網站建設公司網站建設。
適用于那些做了手機站生成靜態的同學,織夢后臺刪除文章同時刪除手機站靜態文件 比如 電腦站文件路徑是:/dapaseo網站關鍵詞優化n/20181102/50757.html 手機站文件路徑是:/m/dapan/20181102/50757.html 打開 /dede/inc/inc_batchup.php 找到 $ htmlfile = GetTruePath().str_replace( $GLOBALS [ cfg_basehost ], , $arcurl ); 復制 在它下面加入 $mhtmlfile = GetTr […]
適用于那些做了手機站生成靜態的同學,織夢后臺刪除文章同時刪除手機站靜態文件
比如
電腦站文件路徑是:/dapan/20181102/50757.html
手機站文件路徑是:/m/dapan/20181102/50757.html
打開 /dede/inc/inc_batchup.php 找到
$htmlfile = GetTruePath().str_replace($GLOBALS['cfg_basehost'],'',$arcurl);復制在它下面加入
$mhtmlfile = GetTruePath().'/m'.str_replace($GLOBALS['cfg_basehost'],'',$arcurl); if(file_exists($mhtmlfile) && !is_dir($mhtmlfile)) { @unlink($mhtmlfile); $arcurls = explo網站建設哪家好de(".", $mhtmlfile); $sname = $arcurls[count($arcurls)-1]; $fname = preg_replace("#(\.$sna公司網站建設me)$#", "", $mhtmlfile); for($i=2; $i<=100; $i++) { $mhtmlfile = $fname."_{$i}.".$sname; if( @file_exists($mhtmlfile) ) @unlink($mhtmlfile); else break; } }復制如圖
完成
相關個業網站建設公司網站建設。聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-25 ,文章織夢后臺刪除文章同時刪除手機站靜態文件織夢主要講述靜態,后臺,手機網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_8563.html