2010年9月12日星期日

[linux][code]uchome rewrite for nginx[伪静态]

ngnix下uchome的伪静态规则,可以和discuz的规则合用

1  2  3  4  5  
location / {       rewrite ^(.*)/(space|network)\-(.+)\.html$ $1/$2.php?rewrite=$3 last;       rewrite ^(.*)/(space|network)\.html$ $1/$2.php last;       rewrite ^(.*)/([0-9]+)$ $1/space.php?uid=$2 last;          }
 
参考:   http://www.weijingtai.com/2010/03/27/uchome-rewrite-nginx/

没有评论:

发表评论