isung 发表于 2011-7-3 17:42:39

lnmp 没有内置的伪静态怎么弄弄啊,老是失败

军哥的LNMP安装包。装起来确实很好用。简单。但遇到个麻烦事。没有内置的规则我怎么加都失败。

我要加destoon,我建立站时在规则那儿输入了。destoon. 后面我进入CONF文件夹,添加了规则到destoon里面。但访问还是无效。麻烦知道的帮我下。真的搞不定了。

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;

licess 发表于 2011-7-3 21:05:37

把伪静态添加到文件里后需要重启一下nginx才行。
页: [1]
查看完整版本: lnmp 没有内置的伪静态怎么弄弄啊,老是失败