Forum Discussion
gdoyle
Cirrostratus
Oct 28, 2018Need to use last 2 of domain name as URI Variable.
So I have a customer that has 15 or so different state based domains (think something like "mydomainFL.com", "mydomainTN.com", etc...). They have a requirement that incorporates the last two or three...
Faruk_AYDIN
Altostratus
Oct 28, 2018try to add like this irule:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/newuser" } {
set pos [expr {[string length [HTTP::host]] - 6}]
set url "[substr [HTTP::host] 0 pos].com/newuser/[substr [HTTP::host] pos 2]/start"
}
}
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