Rewrite URLs that include protocol