ptcms nginx伪静态规则

  1.rewrite "^(.*)sort_([0-9]+)_([0-9]+).html$" $1sort.php?sortid=$2&page=$3 last;
  2.rewrite "^(.*)over_([0-9]+).html$" $1over.php?page=$2 last;
  3.rewrite "^(.*)top_(.*)_([0-9]+).html$" $1top.php?topid=$2&page=$3 last;
  4.rewrite "^(.*)topover_(.*)_([0-9]+).html$" $1topover.php?topid=$2&page=$3 last;
  5.rewrite "^(.*)book_([0-9]+).html$" $1book.php?bookid=$2 last;
  6.rewrite "^(.*)down_(.*)_([0-9]+).html$" $1down.php?bookid=$3&type=$2 last;
  7.rewrite "^(.*)readend_([0-9]+).html$" $1readend.php?bookid=$2 last;
  8.rewrite "^(.*)read_([0-9]+)_([0-9]+).html$" $1read.php?cutid=$2&bookid=$3 last;
  9.rewrite "^(.*)chapter_([0-9]+)_([0-9]+)_([0-9]+).html$" $1chapter.php?cutid=$2&bookid=$3&chapterid=$4 last;

在域名.conf 里面的 index index.html index.htm index.php;下一行添加

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

退出移动版