Forum Discussion

Tom_Butler_1775's avatar
Tom_Butler_1775
Icon for Altocumulus rankAltocumulus
Apr 20, 2018

Redirect an IP based request to my intranet site

I am using a BIG LTM, we have a site that many users have bookmarked by its IP address I want to write a rule that takes the inboud request that includes that IP address, and redirects it to https://newwebsite.com what is that best way to accomplish this task? I currently have a VS listening on the IP address for both HTTP and another for HTTPS

 

1 Reply

  • Attach the following irule to the vs of aa.bb.cc.dd:

    when HTTP_REQUEST {
    if {[HTTP::host] eq "aa.bb.cc.dd"} {
    http::redirect "https://newwebsite.com[HTTP::uri]
    }
    }