Forum Discussion
Robert_47833
Sep 26, 2011Altostratus
Hi,how to set domain in this situation
Dear irule
in one irule,there are 2 types request https://1.cjj.com/aaaa https://1.cjj.co.uk/aaaa
I want to redirect them to my.1.cjj.com or .co.uk
elseif {$uri star...
Robert_47833
Sep 27, 2011Altostratus
how about this one?
if { [string tolower [HTTP::host]] ends_with ".co.uk" } {
set envdomain "[domain $host 3]"
}
elseif {[string tolower [HTTP::host]] ends_with ".com" } {
set envdomain "[domain $host 2]"
}
HTTP::redirect "https://my.$domain"
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