add redirect api, support 301|302|js|meta redirect