-
當前位置:首頁 > 創(chuàng)意學院 > 營銷推廣 > 專題列表 > 正文
- 如何使用dedecms的數(shù)據(jù)庫內(nèi)容批量替換功能
- 如何將織夢dede搜索改為URL偽靜態(tài)
- 織夢dedemcs怎么重寫url偽靜態(tài)設置修改方法
- DEDECMS目錄及URL怎么設置最方便優(yōu)化
dedecms批量修改url(dedecms批量發(fā)布)
大家好!今天讓創(chuàng)意嶺的小編來大家介紹下關于dedecms批量修改url的問題,以下是小編對此問題的歸納整理,讓我們一起來看看吧。
開始之前先推薦一個非常厲害的Ai人工智能工具,一鍵生成原創(chuàng)文章、方案、文案、工作計劃、工作報告、論文、代碼、作文、做題和對話答疑等等
只需要輸入關鍵詞,就能返回你想要的內(nèi)容,有小程序、在線網(wǎng)頁版、PC客戶端和批量生成器
問友Ai官網(wǎng):https://ai.de1919.com。
本文目錄:
如何使用dedecms的數(shù)據(jù)庫內(nèi)容批量替換功能
1、進入后臺-核心-批量維護-數(shù)據(jù)庫內(nèi)容替換2、選擇你要替換的數(shù)據(jù)庫字段內(nèi)容
3、填寫驗證碼替換就行
4、也可以用phpmyadmin等此類數(shù)據(jù)庫管理工具進行維護管理更為方便,
夢客吧織夢模板
為您解答
望采納
如何將織夢dede搜索改為URL偽靜態(tài)
dede5.7偽靜態(tài)設置七步法:第一步、后臺-系統(tǒng)參數(shù)-核心設置-是否使用偽靜態(tài):選擇“是”;
注:你的網(wǎng)站空間是否支持偽靜態(tài),你可以與空間的IDC商聯(lián)系一下,如果是自己的服務器,那就更好辦了,自己動手,豐衣足食。一般來說,空間都是支持偽靜態(tài)的。Apache服務器偽靜態(tài)相對簡單,直接在.htaccess文件中加入相應偽靜態(tài)規(guī)則即可;而IIS服務器偽靜態(tài)的實現(xiàn),則需要加載Rewrite組件,然后配置httpd.ini文件。
第二步、如果你的網(wǎng)站已經(jīng)存在生成的靜態(tài)欄目或文章HTML,那么只需在后臺-系統(tǒng)-SQL命令行工具中執(zhí)行如下語句:
將所有文檔設置為“僅動態(tài)瀏覽”:
update dede_archives set ismake=-1
將所有欄目設置為“使用動態(tài)頁”:
update dede_arctype set isdefault=-1
第三步、列表頁、文章頁偽靜態(tài)修改
打開/include/helpers/channelunit.helper.php。
(1)查找:
//動態(tài)文章
if($cfg_rewrite == 'Y')
{
return $GLOBALS["cfg_plus_dir"]."/view-".$aid.'-1.html';
}
替換為
//動態(tài)文章
if($cfg_rewrite == 'Y')
{
return "/DedeCMS/DedeCMS5.7-".$aid.'-1.html';
}
意思是:將默認的/plus/view-1-1.html文章鏈接格式改為/DedeCMS/DedeCMS5.7-1-1.html。
(2) 查找:
//動態(tài)
$reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid;
替換為
//動態(tài)
$reurl = "/category/list-".$typeid.".html";
意思是:將默認的頻道或是列表頁URL/plus//list.php?tid=1變更為/dedecms/list-1.html形式。
第四步、列表分頁偽靜態(tài)修改
打開/include/arc.listview.class.php
查找:
$plist = str_replace('.php?tid=', '-', $plist);
替換為
$plist = str_replace('plus/list.php?tid=', ‘DedeCMS/DedeCMS5.7-', $plist);
將默認的plus/list.php?tid=替換成RMB/list-;
意思是:將默認的列表分頁鏈接格式plus/list.php?tid=x$x$xl修改為DedeCMS/DedeCMS5.7-x-x-x.html。
第五步、文章分頁偽靜態(tài)
打開/include/arc.archives.class.php,找到獲取動態(tài)的分頁列表GetPagebreakDM()函數(shù)末尾處:
查找:
$PageList = str_replace("plus/view.php?tid=","DedeCMS/DedeCMS5.7-",$PageList);
替換為
$plist = str_replace('plus/view.php?tid=', ’DedeCMS/DedeCMS5.7-', $plist);
將默認的plus/view.php?tid=替換成RMB/huilv-;
意思是:將默認的文章分頁鏈接格式plus/view.php?tid=x$x$xl修改為DedeCMS/DedeCMS5.7-x-x-x.html
第六步、TAG標簽偽靜態(tài)
DedeCms默認的TAG標簽URL,形如/tags.php?/dedecms模板 /,是不是覺得有個問號不怎么爽,我們改成/tags/dedecms模板 /,是不是好看多了。
下面我們來改一下,打開/include/taglib/tag.lib.php:
查找:
$row['link'] = $cfg_cmsurl."/tags.php?/".urlencode($row['keyword'])."/";
替換為
$row['link'] = $cfg_cmsurl."/tags/".urlencode($row['keyword'])."/";
這樣就修改好了,上傳你到你的網(wǎng)站,切記:要記得將原網(wǎng)站備份哦?。?br/>第七步、httpd.ini偽靜態(tài)規(guī)則:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule ^(.*)/RMB/list-([0-9]+).html $1/plus/list.php?tid=$2 [I]
RewriteRule ^(.*)/RMB/list-([0-9]+)-([0-9]+)-([0-9]+).html $1/plus/list.php?tid=$2&TotalResult=$3&PageNo=$4 [I]
RewriteRule ^(.*)/RMB/huilv-([0-9]+)-([0-9]+).html $1/plus/view.php?arcID=$2&pageno=$3 [I]
RewriteRule ^(.*)/(.*)_(.*)_([0-9]+).html $1/huilv/?from=$2&to=$3&num=$4 [I]
RewriteRule ^(.*)/tags.html $1/tags.php [I]
RewriteRule ^(.*)/tags/(.*)(?:(?.*))* $1/tags.php?/$2 [I]
RewriteRule ^(.*)/tags/(.*)/(?:(?.*))* $1/tags.php?/$2/ [I]
RewriteRule ^(.*)/tags/(.*)/([0-9])(?:(?.*))* $1/tags.php?/$2/$3 [I]
RewriteRule ^(.*)/tags/(.*)/([0-9])/(?:(?.*))* $1/tags.php?/$2/$3/ [I]
將上面代碼保存為:httpd.ini 上傳到網(wǎng)站的根目錄。
如無特特殊需求建議采用官方默認的生成靜態(tài)的頁面方式瀏覽。
織夢dedemcs怎么重寫url偽靜態(tài)設置修改方法
1. 首先欄目和文章最好設置成動態(tài)瀏覽. 這樣才不會生成靜態(tài)html文件. Dede教程-598080707.NET2. 設置重寫規(guī)則. 在系統(tǒng)目錄下加一個 .htaccess文件. 內(nèi)容為
這里需要注意的是:Linux操作系統(tǒng)才支持(.htaccess).windows操作系統(tǒng)不支持(.htaccess),所以說此教程是只有Linux操作系統(tǒng)的空間才能使用的方法:
復制代碼
代碼如下:
RewriteEngine On
RewriteRule ^plus/list-([0-9]+).html$ /plus/list.php?tid=$1
RewriteRule ^plus/list-([0-9]+)-([0-9]+)-([0-9]+).html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3
RewriteRule ^plus/view-([0-9]+)-1.html$ /plus/view.php?arcID=$1
RewriteRule ^plus/view-([0-9]+)-([0-9]+).html$ /plus/view.php?aid=$1&pageno=$2
如果你的系統(tǒng)支持url重寫,到這里就可以用偽靜態(tài)訪問了.
3.更改重寫的URL. 找到文件/include/channelunit.func.php打開.
可以看到有這樣的語句
return $GLOBALS["cfg_plus_dir"]."/view-".$aid.'-1.html';
這就是文章的url形色.
$reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid;
這是列表的重寫url.
可以使url更短一點,完成可以寫成: return "/view-".$aid.'-1.html'; 和 $reurl = "/list-".$typeid.".html";
這時重寫規(guī)則也要更新.
復制代碼
代碼如下:
RewriteEngine On
RewriteRule ^list-([0-9]+).html$ /plus/list.php?tid=$1
RewriteRule ^list-([0-9]+)-([0-9]+)-([0-9]+).html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3
RewriteRule ^view-([0-9]+)-1.html$ /plus/view.php?arcID=$1
RewriteRule ^view-([0-9]+)-([0-9]+).html$ /plus/view.php?aid=$1&pageno=$2
DEDECMS目錄及URL怎么設置最方便優(yōu)化
為了方便優(yōu)化的話
如果是企業(yè)站的話 目錄不要超過三級 :例如 /A/B.html 這樣就好了
dede的話 你在搭建網(wǎng)站欄目的如果
第一:
文件保存目錄 可以根據(jù)你的關鍵詞來設置,例如:關鍵詞是網(wǎng)站優(yōu)化的話 保存目錄 可以填寫 seo 這樣的
第二:
選擇路徑全部選擇cms路徑
第三:
文章的命名 盡可能的簡單點
基本上dede在搭建目錄和URL這塊差不多是這三點了
以上就是關于dedecms批量修改url相關問題的回答。希望能幫到你,如有更多相關問題,您也可以聯(lián)系我們的客服進行咨詢,客服也會為您講解更多精彩的知識和內(nèi)容。
推薦閱讀:
pde屬于基礎數(shù)學嗎(數(shù)學pde是什么意思)
世界各國中國留學生人數(shù)排名(世界各國中國留學生人數(shù)排名表)