Tweaking rewrite urls for reverse proxy