Forum Discussion
david0512_20548
Oct 27, 2014Nimbostratus
irule to rewrite header but respond with 200
Hi All,
Im trying to setup an irule (and struggling :-)) that will perform the following. Upon accessing a site, the request will be rewritten to essentially send the client elsewhere, however rath...
shaggy
Oct 28, 2014Nimbostratus
This should be a good starting point
when HTTP_REQUEST {
if { [HTTP::host] contains "www.test." and [HTTP::uri] starts_with "/p/" } {
HTTP::uri [HTTP::host][HTTP::uri]
HTTP::header replace Host "www.ultimatetest.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