add rewrite rule for api server