rewrite relative redirects