Forum Discussion
Dbow_21284
Nimbostratus
May 18, 2010Rewrite Host Header iRule on VS that changes to HOST Header on same VS
Hello guys,
I have a situation where our developers have a sight running on HTTPS that needs to rewrite the host header to a new host header, but DNS points it to the same VS on my LTM. I...
spark_86682
May 22, 2010Historic F5 Account
Well, if you're talking about the location bar in the clients' browser, then all the header fiddling in the world won't change that. You need to do a redirect to the new location, something like:
when HTTP_REQUEST {
if {[HTTP::host] equals "mydomain.net" } {
HTTP::redirect "https://sub.mydomain.net[HTTP::uri]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
