1、開啟Dedecms!v5.7內(nèi)容管理系統(tǒng)偽靜態(tài)的方法
后臺(tái)--系統(tǒng)--系統(tǒng)基本參數(shù)--核心設(shè)置--是否使用偽靜態(tài)(是/否),然后點(diǎn)擊提交。
|
2、新建一個(gè).htaccess文本文件,并把以下內(nèi)容復(fù)制進(jìn)去,保存后上傳到網(wǎng)站文件夾根目錄下
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# unsupported directive: [ISAPI_Rewrite]
# DedeCMS
RewriteRule ^(.*)/index.html $1/index.php [I]
RewriteRule ^(.*)/category/list-([0-9]+).html $1/plus/list.php?tid=$2 [I]
RewriteRule ^(.*)/category/list-([0-9]+)-([0-9]+)-([0-9]+).html $1/plus/list.php?tid=$2&TotalResult=$3&PageNo=$4 [I]
RewriteRule ^(.*)/view-([0-9]+)-([0-9]+).html $1/plus/view.php?arcID=$2&pageno=$3 [I]
RewriteRule ^(.*)/search.html(?:(?.*))* $1/search.php?$2 [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]
RewriteRule ^(.*)/post.html $1/post.php [I]
RewriteRule ^(.*)/type.html $1/type.php [I]
RewriteRule ^(.*)/question-([0-9]+).html $1/question.php?id=$2 [I]
RewriteRule ^(.*)/browser-1-([0-9]+).html $1/browser.php?tid=$2 [I]
RewriteRule ^(.*)/browser-2-([0-9]+).html $1/browser.php?tid2=$2 [I]
RewriteRule ^(.*)/browser-1-([0-9]+)-([0-9]+).html $1/browser.php?tid=$2&page=$3 [I]
RewriteRule ^(.*)/browser-2-([0-9]+)-([0-9]+).html $1/browser.php?tid2=$2&page=$3 [I]
RewriteRule ^(.*)/browser-([0-9]+).html $1/browser.php?lm=$2 [I]
RewriteRule ^(.*)/browser-1-([0-9]+)-([0-9]+).html $1/browser.php?tid=$2&lm=$3 [I]
RewriteRule ^(.*)/browser-2-([0-9]+)-([0-9]+).html $1/browser.php?tid2=$2&lm=$3 [I]
|