Forum Discussion
Yogeshwar
Aug 11, 2022Nimbostratus
F5 Rewrite i rule to a different URL
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.
2 Replies
Sort By
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 "
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects