选择网站目录,直接填写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;
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;