1 首先需要在后臺開啟偽靜態(服務器必須支持)
2 設置欄目必須是使用動態頁
3修改 include/channelunit.func.php 文件
查找
$reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid;
替換成:
$reurl = $GLOBALS['cfg_phpurl']."/list-".$typeid.".html";
該處的修改是為了把導航及dede默認的動態鏈接換成靜態
如果你想文章頁也偽靜態 那么在添加文檔時選擇 高級參數—>僅動態瀏覽
附上偽靜態規則
iis
[ISAPI_Rewrite]
# 緩存3600秒 = 1 小時(hour)
CacheClockRate 3600
RepeatLimit 32
RewriteRule ^(.*)/index\.html $1/index\.php
RewriteRule ^(.*)/plus/list-([0-9]+)\.html $1/plus/list\.php\?tid=$2
RewriteRule ^(.*)/plus/list-([0-9]+)-([0-9]+)-([0-9]+)\.html $1/plus/list\.php\?tid=$2&TotalResult=$3&PageNo=$4
RewriteRule ^(.*)/plus/view-([0-9]+)-([0-9]+)\.html $1/plus/view\.php\?arcID=$2&pageno=$3
apache
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule index\.html /index\.php
RewriteRule plus/list-([0-9]+)\.html$ /plus/list.php?tid=$1
RewriteRule plus/view-([0-9]+)-([0-9]+)\.html$ /plus/view.php?arcID=$1&pageno=$3
RewriteRule plus/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3