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
hmmm,thanks,Michael
because there are some seperated parts in irule need redirect
so I want to put this co.uk and com in one variable
https://1.cjj.com/aaaa
https://1.cjj.co.uk/aaaa
for example domain variable cache .com or .co.uk
so I just need to use
switch -glob [string tolower [HTTP::uri]] {
"/aaaa*" {
HTTP::redirect "https://my.1.cjj$domain"
}
is it ok?
how to use a effeicent way to cache this .com and .co.uk
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