Forum Discussion
Steve_Brown_882
Mar 14, 2007Historic F5 Account
Newbie Question URI Rewrite
Hello All,
I am in need of some help with an irule to rewrite a uri and uri redirects. I have a url which is https://prepend-host.domain.com/whatever and I would like to rewrite this inbound to b...
Steve_Brown_882
Mar 15, 2007Historic F5 Account
Ok so I have dug a bit and gotten myself started. I have a dirty verion of the first half of my requirment. This appears to be working the way I want although I need to make it more generic so I can use it for multiple sub domains. What I am looking for now is help writting the other half of this. Which would add the begin- portion back to the responces.
when HTTP_REQUEST {
if {[HTTP::host] contains "begin-sub."} {
HTTP::header replace "Host" "sub.host.com"
log local0. "This is the new host: [HTTP::header "Host"]"
}
}
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
