0
我有以下重寫規則nginx的重寫問題
rewrite ^/ab(.*)/(.*)$ /repo/ab$1/rtest/$2 break;
當請求文件/abname/index.php它被改寫爲/abname/rtest/index.php
但是,如果該請求是/abname/dir1/index.php格式,它會被重寫爲/abname/dir1/rtest/index.php,但我希望它被重寫爲/abname/rtest/dir1/index.php
How我寫規則?
謝謝,成功了! – rampr 2010-04-03 06:10:24