Forum Discussion
JustCooLpOOLe
Cirrocumulus
Oct 07, 2019iRule Rewrite in Browser
Hi, I'm hoping someone can help me out. We have an old domain moving from one system to another such as www.testsite.com. This domain is moving to another existing site but they don't plan to...
JustCooLpOOLe
Cirrocumulus
Oct 08, 2019Thanks .
I'm trying to avoid putting a redirect on a VS that could live forever so my thought was to point the IP for www.testsite.com to the same IP as www.newtestsite.com and have an iRule basically change the Host in the browser so the client wouldn't know the difference. Something like this?
when HTTP_REQUEST {
if { [HTTP::host] equals "www.testsite.com" } {
[HTTP::header] replace Host "www.newtestsite.com"
}
}Would that show as updated in the URL that the client would see? I've never replaced the host header and we typically do redirects so this is something new.
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
