Forum Discussion
BuccaneerDave_2
Nimbostratus
Feb 20, 2015trouble getting redirect irule to work
Hello,
I need to have traffic from:
hostA.xyzcompanyresources.com/*
redirect to:
stageamericas.internal.xyzcompanyonline.com/pages/legacyredirection.aspx?legacyurl=hostA.xyzcompanyresou...
nitass
Employee
Feb 20, 2015I tried changing "hostA.zyxcompanyresources.com" to $::communities_host_list but it doesn't work.
$:: prefix is no longer needed since 9.4.4.
9.4.0 - 9.4.3, class reference not compatible as of 9.4.4, "::" and "$::" prefixes are no longer required to reference classes using findclass or matchclass. Classes are static and are therefore CMP compatible. There is no need to treat them as global objects.
CMP Compatibility
https://devcentral.f5.com/wiki/iRules.cmpcompatibility.ashxcan you try this?
if { [class match -- [HTTP::host] equals communities_host_list] } {
...
}
class
https://devcentral.f5.com/wiki/iRules.class.ashxRecent 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