Forum Discussion

3 Replies

  • do you mean rewirting host header? if yes, you can use HTTP::header replace or HTTP::host (in 11.5 or later) command. HTTP::header   https://clouddocs.f5.com/api/irules/HTTP__header.html HTTP::host   https://clouddocs.f5.com/api/irules/HTTP__host.html
  • But I only want to replace the host when the url is ~username. The other traffic destined for www.company.com I want to go there.

     

    • nitass's avatar
      nitass
      Icon for Employee rankEmployee
      you can check uri using HTTP::uri or HTTP::path command. HTTP::uri https://clouddocs.f5.com/api/irules/HTTP__uri.html HTTP::path https://clouddocs.f5.com/api/irules/HTTP__path.html