yuntian012 发表于 2011-11-8 17:39:47

怎么样弄nginx的静态规则

要把destoon系统安装在nginx服务器上面,静态不会搞啊,之前抄袭网上的那些静态规则都不行,大家有这方面经验不?

iamtop 发表于 2011-11-8 18:51:53


我的就是nginx的伪静态

iamtop 发表于 2011-11-8 23:20:59


rewrite ^/(.*)-htm-(.*)$ /$1.php?$2;
rewrite ^/(.*)/show-(+)([\-])?(+)?\.html$ /$1/show.php?itemid=$2&page=$4;
rewrite ^/(.*)/list-(+)([\-])?(+)?\.html$ /$1/list.php?catid=$2&page=$4;
rewrite ^/(.*)/show/(+)/(+)?([/])?$ /$1/show.php?itemid=$2&page=$3;
rewrite ^/(.*)/list/(+)/(+)?([/])?$ /$1/list.php?catid=$2&page=$3;
rewrite ^/(+)\.co/(.*)$ /company/index.php?homepage=$1&rewrite=$2;
rewrite ^/(htm)/(.*)$ /index.php?&rewrite=$2;
页: [1]
查看完整版本: 怎么样弄nginx的静态规则