Forum Discussion
smeisenzahl
Employee
Dec 13, 2012Irule simple redirect or not?
I have an issue where I think I need a redirect but I'm not sure
I have a site http://www.testsite.com that is in production and I can't modify the vs at this time. When users type www.testsite...
What_Lies_Bene1
Cirrostratus
Dec 13, 2012Better yet, use the same Pool on the new VS, assign a HTTP profile and use this;
when HTTP_REQUEST {
if { [string tolower [HTTP::Header "Host"] equals "testsite.com" } {
HTTP::header replace Host "www.testsite.com"
Stop processing the iRule for this event here
return
}
}
Just make sure there are no absolute links in server responses.
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