用nginx重写漂亮的链接

时间:2011-12-13 19:57:11

标签: php nginx rewrite

2 个答案:

答案 0 :(得分:0)

这有效

rewrite ^/folder/(.*)$ /folder/cache.php?a=$1?$args? last;

答案 1 :(得分:0)

rewrite ^/folder/(.*)$ /folder/cache.php?a=$1$is_args$args? last;