用织梦系统的用户基本很少使用伪静态的,一般都会直接使用静态页面,但是不排除也有使用伪静态的,这不我的一个用户就使用了伪静态,而且是在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;}
新闻热点
疑难解答