求nginx+PHP环境下,将a.php转成b.html的伪静态规则!

这个是uchome的规则,我有2个PHP的页面需要转成html。请高手解答看看这个规则哪里出问题了。
location / {
rewrite ^(.*)/(space|network)\-(.+)\.html$ $1/$2.php?rewrite=$3 last;
rewrite ^(.*)/(space|network)\.html$ $1/$2.php last;
rewrite ^/jifenflashgame\.html fgame.php last;
rewrite ^/tvonline\.html tv.php?ac=index last;
rewrite ^(.*)/([0-9]+)$ $1/space.php?uid=$2 last;
}
主要是以下两个规则
rewrite ^/jifenflashgame\.html fgame.php last;
rewrite ^/tvonline\.html tv.php?ac=index last;
其他都能正常,就这2条规则编译不出来。

rewrite ^/jifenflashgame\.html $1/fgame.php last;
rewrite ^/tvonline\.html $1/tv.php?ac=index last;
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-03-14
不了解PHP
相似回答