add server rewrite config