差别
这里会显示出您选择的修订版和当前版本之间的差别。
| — |
amh4.2:nginx_rewrite_rule:dedecms [2017/05/26 16:04] (当前版本) root 创建 |
||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | =====dedecms在nginx下的伪静态规则===== | ||
| + | \\ | ||
| + | \\ | ||
| + | <code> | ||
| + | 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.html$" /tags.php last; | ||
| + | rewrite "^/tag-([0-9]+)-([0-9]+)\.html$" /tags.php?/$1/$2/ last; | ||
| + | break; | ||
| + | } | ||
| + | </code> | ||
最后更改: in 2017/05/26 16:04