11-Aug-2022 06:09
Hello,
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 http://xyz.mmm.com/aaaaa/bbbbbbb
please sugest. i have never used a rewrite irule before.
11-Aug-2022 13:10
@Yogeshwar, try the following irule. What's the version and model of your f5?
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] equals "xyz.mmm.com") }{
HTTP::header replace Host "abc.com"
}
}
when HTTP_RESPONSE {
HTTP::header replace Host "xyz.mmm.com "
}
22-Aug-2022 17:25
@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? 🙂