rewrite referer header