用織夢系統的用戶基本很少使用偽靜態的,一般都會直接使用靜態頁面,但是不排除也有使用偽靜態的,這不我的一個用戶就使用了偽靜態,而且是在nginx下偽靜態。下面分享一下織夢dedecms在nginx下偽靜態規則設置,方便又需要的朋友使用。
location / {rewrite "^/index.html$" /index.php last;rewrite "^/list-([0-9]+)/.html$" /plus/list.php?tid=$1 last;rewrite "^/list-([0-9]+)-([0-9]+)-([0-9]+)/.html$" /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;rewrite "^/view-([0-9]+)-1/.html$" /plus/view.php?arcID=$1 last;rewrite "^/view-([0-9]+)-([0-9]+)/.html$" /plus/view.php?aid=$1&pageno=$2 last;rewrite "^/tags/$" /tags.php last;rewrite "^/tags/(.*)/$" /tags.php?/$1/ last;break;}新聞熱點
疑難解答