Forum Discussion

Yogeshwar's avatar
Icon for Nimbostratus rankNimbostratus
Aug 11, 2022

F5 Rewrite i rule to a different URL


I want a rewrite.  When the user goes to http://abc:12345//aaaaa/bbbbbbb I want the browser to stay at the same URL but see the contents of

please sugest. i have never used a rewrite irule before.

2 Replies

  • Yogeshwar, try the following irule. What's the version and model of your f5?

    when HTTP_REQUEST {
    if { ([string tolower [HTTP::host]] equals "") }{
    HTTP::header replace Host ""
    when HTTP_RESPONSE {
    HTTP::header replace Host " "

  • Yogeshwar - did pstoianov's reply help you out? If yes, could you please click Accept as Solution on their response so that anyone else looking to solve the same issue knows what the resolution is? 🙂