Forum Discussion

1 Reply

  • Hi,

    you can try this irule:

    when HTTP_REQUEST {
        if {[HTTP::host] equals "video.abc.com"} {
            HTTP::redirect "http://www.abc.com/video"
        }
    }
    

    Or if you want to redirect http://video.abc.com/foo to http://www.abc.com/video/foo

    when HTTP_REQUEST {
        if {[HTTP::host] equals "video.abc.com"} {
            HTTP::redirect "http://www.abc.com/video[HTTP::uri]"
        }
    }