licess 发表于 2011-5-15 22:06:08

CF image host nginx伪静态规则/rewrite

:lol自己装了一个CF image host玩。。。有用户反映网上自动转换程序转换的伪静态不行,试了一下完全正常,应该是他的设置问题rewrite /test-(.*)\.htm$ /inc/tesmodrewite.php?q=test_$1;
rewrite /test2-(.*)\.htm$ /inc/tesmodrewite.php?q=test_$1;
rewrite /pm-(.*)\.(jpg|png|gif|html)$ /index.php?pm=$1;
rewrite /pt-(.*)\.(jpg|png|gif|html)$ /index.php?pt=$1;
rewrite /dt-(.*)\.(jpg|png|gif)$ /index.php?dt=$1;
rewrite /dm-(.*)\.(jpg|png|gif)$ /index.php?dm=$1;
rewrite /di-(.*)\.(jpg|jpeg|png|gif|bmp)$ /index.php?di=$1;
rewrite /page(.*)\.html$ /gallery.php?p=$1;
顺便留个演示:
http://oplink.vpser.net/cf/
http://oplink.vpser.net/cf/pm-GH7P.html
http://oplink.vpser.net/cf/di-GH7P.jpg
页: [1]
查看完整版本: CF image host nginx伪静态规则/rewrite