Forum Discussion

  • Hey Son,

    This iRule snippet should work for your redirect if you put it on the VS that corresponds with https://abc.com.

    when HTTP_REQUEST
    {
        if {[[HTTP::uri] starts_with "/newsite"]}
        {
            HTTP::redirect https://zxc.com
        }
    }
    

    As for the cookies issue, that seems like something that would have to be established within the application. As far as I know, there is not a way to rewrite cookies to a new site since the cookies are stored on a user's browser.

    If you have any more questions, I am sure I can help.