Fix proxy server rewriting rules + format