dedecms织梦nginx下伪静态规则设置

dedecms织梦 nginx下伪静态规则设置方法

1

2

3

4

5

6

7

8

9

10

 

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;

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/33b1feb0daa4f8e6aebac425eae0705d.html