Forum Discussion
meenny_60187
Nimbostratus
Apr 30, 2012Redirect friendly host name to https URL
I'm having issues redirecting a friendly name to an internal https SharePoint site. User enters: soc1 iRule redirect: https://epwork.ep.corp/bu/it/soc "soc1" is a friendl...
Nathan_Houck_65
Nimbostratus
Apr 30, 2012you may want to try using a matchclass and datagroup combination for this:
rule soc1_class_rule {
when HTTP_REQUEST {
if {[class match [string tolower[HTTP::host]] equals test_class]}{
HTTP::redirect "https://epwork.ep.corp/bu/it/soc1"
} else {
do something else}
}
}
class test_class {
{
"soc1"
"www.soc1.com"
"soc1.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