好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 網站建設 > 建站知識 > dedecms5.3偽靜態及rewrite規則

dedecms5.3偽靜態及rewrite規則

POST TIME:2017-11-13 01:03

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


收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266