热门文章
      Popular Articles
          MLECMS V2.1+ Apache、Nginx伪静态规则设置

          发布日期:2011-04-19     点击:

          二、Nginx主机的伪静态可以直接通过主机控制面板写入规则,进入主机管理面板,选择自定义伪静态:


          选择网站目录,直接填写Nginx静态规则即可。

          以下是 Nginx 伪静态规则:
          rewrite ^/(article|product|photo|download|cart|tag|guestbook|feedback|search|app)\.html$ /$1.php;
          rewrite ^/(article|product|photo|download)-([0-9]+)-([0-9]+)\.html$ /$1.php?pid=$2&page=$3;
          rewrite ^/(article|product|photo|download)-([0-9]+)\.html$ /$1.php?pid=$2;
          rewrite ^/(article|product|photo|download)--([0-9]+)\.html$ /$1.php?page=$2;
          rewrite ^/(list|category|slide|soft)-([0-9]+)-([0-9]+)\.html$ /$1.php?cid=$2&page=$3;
          rewrite ^/(list|category|slide|soft)-([0-9]+)\.html$ /$1.php?cid=$2;
          rewrite ^/(view|detail|show|down)-([0-9]+)-([0-9]+)\.html$ /$1.php?id=$2&page=$3;
          rewrite ^/(view|detail|show|down)-([0-9]+)\.html$ /$1.php?id=$2;
          rewrite ^/member\/(.*)\.html$ /member/$1.php;
            首 页
            上一页
            1
            2
              页次: 2/2